Someone called Paul Jakma said on Wed, May 03, 2000 at 12:53:23PM +0100:
> any easy to expand out a series of numbers in bash?
>> ie i want to do:
>> for H in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 etc.. etc.. ; do
>> but something like
>> for H in 0 to 254 ; do
>> would be much easier. the [..] thing doesnt seem to be evaluated..
>> any ideas?
try the "jot" command. It exists under freebsd, not sure about linux.
for i in `jot 254 1 254`
Obscenity is the crutch of Inarticulate Motherfuckers.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!