Unknown parse error that I cannot figure out

Viewed 26

I am taking an online .SH class it's really basic stuff but I am having trouble already and it's something I just don't understand right now.

So the .SH is called ipsweep.sh. It is the first in a line of Kali pen testing scripts that I am trying to learn. The script I was given to copy and create was this

#!/bin/bash
for ip in 'seq 1-254 ';do 
ping -c 1 $1.$ip|grep "64 bytes"|cut -d "" -f 4|
tr -d ":" & 
done

I keep running into errors that I cannot explain seeing as how this was literally copy and paste script. The last error I ran into was parse error near '\n'.

What does it mean?

0 Answers
Related