LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Remove file \033[2~evtlog.2009-01-07 (https://www.linuxquestions.org/questions/programming-9/remove-file-%5C033%5B2%7Eevtlog-2009-01-07-a-703631/)

indiancosmonaut 02-10-2009 10:15 AM

Remove file \033[2~evtlog.2009-01-07
 
Hello,

I have accidently created the file here in AIX \033[2~evtlog.2009-01-07

I am trying to remove but have not been successful. Could you please help and also what is \033[2~

Thanks in advance,

Kind regards,

indiancosmonaut

Maligree 02-10-2009 11:15 AM

I have no idea if this is true on AIX, but you should try to escape that backslash and bracket. So...
Code:

rm \\033\[2~evtlog.2009-01-07
Anyway, can't you just type..
Code:

rm \\
..and hit <tab> to use autocompletion?

dwhitney67 02-10-2009 12:16 PM

You can try placing the file name in double-quotes. For example:
Code:

rm "\033[2~evtlog.2009-01-07"

paulsm4 02-10-2009 12:32 PM

Hi -

Quote:

*** WARNING ***
Always try the command "ls" (to make sure you're really getting the file(s) you expect) before you actually use "rm"!!!!!
Here's a link that might help:
http://www.cyberciti.biz/tips/delete...de-number.html

Good luck .. PSM


All times are GMT -5. The time now is 10:56 PM.