[Gllug] Mass renaming of files
Tethys
tet at accucard.com
Thu May 8 10:04:55 UTC 2003
Richard Cohen writes:
>for i in $(find <dirname> -type f -name *:*)
The *:* needs to be quoted to prevent failures when the top level
directory contains a filename with a colon.
> echo mv $i "$newname"
This won't handle filenames containing spaces -- quite likely if they
were created by Mac or Windows users. You need to quote the "$i" (and
the setting of $newname a couple of lines earlier).
Tet
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list