Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem on octal filename

Status
Not open for further replies.

dmouge

Technical User
May 7, 2002
133
ES
Hi,

I have found on my system a strange files like this:
}m\260\262\355

I have understand that the \260 are an octal character. Now i want to remove this file.

How can i do this ?

David
 
rm '}m\260\262\355'

works for me, the back-slashes lose their special meaning inside single quotes Mike
________________________________________________________________________________

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
this doesn't works.
I have the message "No such file or directory"
I have this type of name when I enter the command ls -b:
}m\260\262\355

 
Perhaps you can rm -i *m*
or rm -i *{*
assuming you don't have too many files containing m in their name
;-) Dickie Bird
db@dickiebird.freeserve.co.uk
 
I have sucessfully erase some files with this command
rm }m*

but no I have also some file with only octal character.
and it's very dangerous to make rm ???? because i'm on the root system files...
 
use 'ls pattern' to try and list only the files you wish to remove and only after getting a successful list use the same pattern with rm.
 
Thanks to all,

I found the solution i insert this command :
rm -i ????
where ???? depend of the number of octal number and the system ask me before remove the different files.

Now my system is clear.

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top