[Gllug] Changing case on filenames

Rob Andrews rob at impure.org.uk
Mon Mar 4 21:58:16 UTC 2002


[04-Mar-2002 21:36.23 (GMT) / Gordon Joly]
 > >This wonderful technique can be built on:-
 > >for i in *; do
 > >mv $i `echo $i | tr 'A-Z' 'n-za-m'`
 > >done
 > which shell?

My suspicion tells me that won't work, since $ will be quoted directly due
to the single quotes.

Additionally, the internal single quotes are unescaped, so they'll break.

But back to the original question, it should work with any bourne compatible
shell.

/me ducks the oncoming axes

-- 
nine      <e> rob at impure.org.uk <pgp> 0x8bb5c71e <w> http://impure.org.uk/

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list