[techtalk] filename special characters
ktb
x.y.f at home.com
Sun Jan 21 18:25:31 EST 2001
On Sun, Jan 21, 2001 at 01:45:20PM -0800, Dennis Wheeler wrote:
>
> >
> >
> > rm "file[2].txt"
> > will remove the offending file.
> > kent
> >
> >
>
> That's true, quoting the filename will let me remove it, but in this case I
> don't want to remove the file, I want to rename it by removing the '[*]'
> from the filename. And there are a lot of them in several directories.
>
> Verifying that the rename files are unique in thier own folders is a
> seperate problem that I can solve once I'm able to search and replace the
> '[]' characters.
>
find . -name "*\[*\]*" -print
Will find files like your example "file[2].txt". If I have time I will
mess around with this a little more tonight.
hth,
kent
--
I'd really love ta wana help ya Flanders but... Homer Simpson
More information about the Techtalk
mailing list