[techtalk] filename special characters

Adriana Gonzalez adriana at hq.mycity.com
Mon Jan 22 16:04:41 EST 2001

This might be useful in the future, although you already have a solution.

There is this very cool utility called 'ren' that will do renaming of multiple files (I understand you want to rename them and not delete them).

Suppose you have file[1].txt and file[2].txt, if you type

ren 'file[*].txt' 'file#1.txt'

you will end up having file1.txt and file2.txt.

'#1' represents the pattern that matched the first wildcard, in this case the first and only wildcard is  the '*' inside the brackets.

If you don't have it on your system, you can get the rpm  at http://rpmfind.net/linux/RPM/contrib/libc6/i386/ren-1.0-4.i386.html

Dennis Wheeler wrote:
> ktb wrote:
> >
> >
> > find . -name "*\[*\]*" -print
> >
> Doh! Quoting the find expression works. Thanks!
> -- Dennis
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk

   Adriana Gonzalez                  
   Programmer, Analyst
   PH:  305-531-7139 x 8090

More information about the Techtalk mailing list