Guest User

Untitled

a guest
Mar 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. IP_Addresses=(
  3. 172.217.6.142
  4. 191.239.213.197
  5. )
  6. FILE_Name=(
  7. "google"
  8. "microsoft"
  9. )
  10. for i in "${IP_Addresses[@]}"
  11. do
  12. nc -w2 -zv4 ${IP_Addresses[@]} 1-100 > "${FILE_NAME[$i]}".log 2>&1
  13. done
  14.  
  15. ./testPorts.sh: line 14: 172.217.6.142: syntax error: invalid arithmetic operator (error token is ".217.6.142")
  16. ./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