quickie

William Rowden rowdenw at eskimo.com
Mon May 22 21:03:16 PDT 2000


Today, Slowping wrote:

> if you don't want to do the perl ;) you can always do a

> mini-shell script...


I was just smiling over invoking perl for file operations...


> for file in *; do mv $file ${file}.png; done


....and I was just about to suggest that.


> if you wanted to rename the extension (something I do all the time)

>

> for file in *.mp2; do mv ${file} ${file%%mp2}mp3; done


That looks like ksh.
--
-William
PGP key: http://www.eskimo.com/~rowdenw/pgp/rowdenw.asc until 2000-08-01
Fingerprint: FB4B E2CD 25AF 95E5 ADBB DA28 379D 47DB 599E 0B1AA
I said "Wherever. Whatever. Have a nice day."



More information about the Linux mailing list