General discussion

Locked

escape sequence for rename of filename

By alan ·
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums