Re: [SLUG] looking for a rename tool

From: Levi Bard (levi@bard.sytes.net)
Date: Sat Feb 15 2003 - 21:05:58 EST


> I'm looking for an easy way to rename or delete a bunch of files that
> have windows type names. Names with ( ,' and spaces in them. I have a
> little oneliner that will do this for files in the current dir.
> # replace spaces with _ change ' ' to '(' to replace (
> for i in *.*; do mv "$i" `echo $i | tr ' ' '_'`; done

How's this look?

Levi

(Hope this doesn't get bounced!)







This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:24:32 EDT