syntax error near unexpected token `do' code example Example: bash: syntax error near unexpected token 'do' My solution was sudo nmap -p 80 -iL textnameip.txt -T4 -v