25 Jun
2014
25 Jun
'14
6:03 p.m.
Can you use perl instead? perl -E "say $_ for 0..65535" > > /home/netflow/etc/0-65535.txt On Wed, June 25, 2014 12:53 pm, Scott Granados wrote:
Im trying to write a small script in bash and its 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
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins