On Wed, Oct 17, 2007 at 00:44:55 -0400, H.S. wrote: > Hello, > > I am renaming files by removing parentheses from them. These are image > files which were sorted in Windows (by placing them in the desired order > and then by renaming them in batch mode in Windows explorer -- couldn't > do this in Linux). > > Here is an example: > 20030113_Lohri_ (107).jpg -> is to be named as: > 20030113_Lohri_ 107.jpg
[...] > However, I also want to remove that space preceding the opening > parenthesis in the input filename. rename 's/ ?\(|\)//g' *.jpg (The rename command is included in package "perl".) -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]