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