escape sequence for rename of filename - TechRepublic
General discussion
June 19, 2000 at 12:58 AM
alan

escape sequence for rename of filename

by alan . Updated 25 years, 11 months ago

This probably should be simple, but I haven’t resolved it yet. I have a file that was accidentally created (bad syntax in tar) that is “-C” (w/o quotes). Any attempts to rename via mv yields soem type of illegal option error. I’ve tried using \ to rename, single quotes, single character, and wildcard to get it into a name I can remove. This is through csh under Solaris 2.6 via a character based connection (no keyboard/monitor on the Ultra Sparc).
Commands used: mv \-C junk mv ‘-C’ junk mv \’-C junk
and other variations – nothing seems to work.

This discussion is locked

All Comments