I've always wanted to know how to do this.  It happens a lot here at
work that things are named with numbers consecutively.  And I often need
to do this:

cp graphic_1.gif graphic_text_1.gif

for each graphic numbered 1 through 20, for example.

I know I can do a bash thing on the command line:
for i in graphic_* ; do something with $1 ; done

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.

Thanks,
Rob
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to