On Sun, Sep 30, 2001 at 10:37:12AM -0400, Jerry McBride wrote: > I'm having some problems renaming some files created under windows. The > filenames contain characters that bash thinks are tokens... and causes the > usual "unexpected token complaint" > > An example file name would be: THIS is a (DUMB) windows filename & test > > A simple rename with mv is not possible, nor is a cp to another filename... > This worked for me:
echo Success > "THIS is a (DUMB) windows filename & test" dir THIS* THIS\ is\ a\ (DUMB)\ windows\ filename\ &\ test mv THIS\ is\ a\ \(DUMB\)\ windows\ filename\ \&\ test BetterName cat BetterName Success Nothing to it. Note: I not sure about the &. When I cut and pasted it the slash appeared in front of it. Joel _______________________________________________ http://linux.nf -- [EMAIL PROTECTED] Archives, Subscribe, Unsubscribe, Digest, Etc ->http://linux.nf/mailman/listinfo/linux-users