Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Deleting a file in unix
Name: pbekal Date: September 21, 2006 at 09:59:24 Pacific OS: HPUX CPU/Ram: RISC Product: HP
Comment:
How can I delete a file with the name -C in unix? I tried below and get the error. > rm "-C" rm: illegal option -- C Usage: rm [-Rfir] file ...
Name: nails Date: September 21, 2006 at 12:40:42 Pacific
Reply:
Getting rid of a file that has a dash in it - short of blowing away the whole directory - is nearly impossible.
This is the only way I've determined. Go to the directory immediately above where the -C file resides. For this example, assume the file is in the directory, rr. Execute:
rm -i rr/-C
Press Y when prompted to remove the file.
0
Response Number 2
Name: praveen_indramo Date: September 28, 2006 at 13:10:31 Pacific
Summary: Hi janie_rose, It's not the exact answer I think. First let me explain the problems I faced. I was in a situation where I need to create a empty file by applying a single UNIX command. We ...
Summary: i have a file in unix in which datas are like this 07 01 abc data entry Z3 data entry ASSISTANT Z3 39 08 01 POD peadiatrist Z4 POD PeDIATRY ...
Summary: i deleted a route in routing table using route delete.. its deletes the route.. bt yet again when i use netstat to see the routing table its still there!!! how to remove it permanently, so that it be...