![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ksh - read file with leading spaces | momi | Shell Programming and Scripting | 2 | 03-17-2008 03:02 PM |
| remove leading spaces from a line | lijojoseph | Shell Programming and Scripting | 6 | 03-17-2008 05:29 AM |
| dash after ampersant | csecnarf | UNIX for Dummies Questions & Answers | 2 | 03-12-2008 03:47 PM |
| Perl: How do I remove leading non alpha characters | Juha | Shell Programming and Scripting | 9 | 02-23-2008 11:10 AM |
| truncating leading zeros of a column in a file | nvuradi | Shell Programming and Scripting | 7 | 08-30-2007 07:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to remove a file with a leading dash '-' in it's name?
Somehow someone created a file named '-ov' in the root directory.
Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option -- o or v" errors. It appears that the '-' dash is being treated as options to my rm command. If the p.o.s. file was in most any other directory I'd just move everything else out to somewhere then blow away the directory and re-make it and begin the stuff back. Can't really do that with the root directory <g>. Anyone have any other ideas on how it can be make to go away? System is an Esix System V Release 4 box but I don't think that matters. Thanks. Geo. |
| Bookmarks |
| Tags |
| cpio |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|