I want to learn how to create bash scripts on Ubuntu linux to automate my work.
1. $ gedit test.sh
2. At the first line of the file type #!/bin/bash
3. $ chmod +x test.sh // Grant permission for execution
4. $ ./test.sh // execute like this
5. When you do for with sequence use special quotes `seq 10`
#!/bin/bash
for ip in `seq 210 218`; do
ping -c1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":"
done
5.1. $1 means first argument after command
6. Type $ ./test.sh 192.168.43
7. & at the end allows to work simulteniously