25 Jun
2014
25 Jun
'14
5:53 p.m.
I’m trying to write a small script in bash and it’s not working. I want to count from 0 to 65535 and put that number, 1 per line in a flat file I was trying something like this COUNT=0 while [$COUNT -lt 65536] do echo $COUNT >> /home/netflow/etc/0-65535.txt COUNT=`expr $COUNT + 1` done I keep getting a bash “0 invalid command” Anyone know how to write this expression correctly so it populates the file? Thanks Scott