On Mon, Dec 15, 2003 at 02:14:57PM -0800, Cory Petkovsek wrote: > On Mon, Dec 15, 2003 at 12:41:09PM -0800, Bob Miller wrote: > > Rob Hudson wrote: > > > > > But is there a way to do something like this?: > > > for i in [1-20] ; do cp graphic_$1.gif graphic_text_$1.gif ; done > > > > > > It doesn't work but it seems like there should be an easy way to set up > > > a range like that. > > > > #!/bin/sh > > > > for ((i = 7; i < 14; i++)) > > do > > echo $i > > done > > This doesn't work on all bashes. Specifically bash on my solaris 8 box. > Why not?
Because it's new, even as bashisms go. for i in `seq 1 9`; do ... That should be portable. _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug