Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- IP_Addresses=(
- 172.217.6.142
- 191.239.213.197
- )
- FILE_Name=(
- "google"
- "microsoft"
- )
- for i in "${IP_Addresses[@]}"
- do
- nc -w2 -zv4 ${IP_Addresses[@]} 1-100 > "${FILE_NAME[$i]}".log 2>&1
- done
- ./testPorts.sh: line 14: 172.217.6.142: syntax error: invalid arithmetic operator (error token is ".217.6.142")
- ./testPorts.sh: line 14: 191.239.213.197: syntax error: invalid arithmetic operator (error token is ".239.213.197")
Add Comment
Please, Sign In to add comment