You're using single quote instead of backticks for your seq statement.
for x in 'seq 1 254'
Will result in 3 items: seq, 1, 254
for x in `seq 1 254`
Will result in: 1, 2, 3, 4, 5, 6, etc..
Single quotes are for literals, backticks are for command substitution.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments