rm -[red].txt

Status
Not open for further replies.
you have to use escape characters, look at the bash man pages, backslash and quotes are needed I think to handle the [ and - signs

quick and dirty way, type mc, then find the file and hit F8
 
horndude said:
you have to use escape characters, look at the bash man pages, backslash and quotes are needed I think to handle the [ and - signs

quick and dirty way, type mc, then find the file and hit F8
the "Midnight Commander" did the trick. Is there a reason why i shouldn't use that to delete files?
 
no not at all, but learning the proper characters to do it with the command line would be good too
 
How did you originally create it? When I try it seems impossible

[root@server1 root]# pico -[red].txt
pico: invalid option -- [

:confused:
 
gman2 said:
How did you originally create it? When I try it seems impossible

[root@server1 root]# pico -[red].txt
pico: invalid option -- [

:confused:
it was transferred from another computer
 
Status
Not open for further replies.
Back
Top Bottom