Browse Source

overview, range in bash

master
Anthony Fadly 1 year ago
parent
commit
125eabc959
1 changed files with 23 additions and 0 deletions
  1. 23
    0
      oct15-networking-commands.md

+ 23
- 0
oct15-networking-commands.md View File

@@ -1,5 +1,12 @@
# October 15 - Networking Commands

## Overview

- [Range in bash](#range-in-bash)
- CIDR
- Class A, B, C, D
- Networking Commands:

```
ifconfig
ip
@@ -10,3 +17,19 @@ host
nslookup
dig
```

## Range in Bash

```
if (( $variable < 0 ))
then
echo "too low"
elif (( $variable <= 10 ))
then
echo "variable is in range 0-10"
elif (( $variable <= 20 ))
then
echo "variable is in range 11-20"
else
echo "variable is larger than 20"
```

Loading…
Cancel
Save