Re: [ILUG] shell script question

From: John N S Gill (jng at domain renre-europe.com)
Date: Wed 03 May 2000 - 13:30:50 IST


> > yeah, forgot about seq.. doh, and that does the job perfectly on linux.
> > (which makes me happy for now).
> >
> > but how about a native sh or bash way for other Unices?
>
 
Following works in bash:

i=0
while [ $i -lt 256 ]; do
  echo $i
  i=$(( $i + 1 ))
done



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:00 GMT