[Ilugc] bash escape

  • From: suraj@xxxxxxxxxxx (Suraj)
  • Date: Mon, 16 Feb 2004 04:57:47 -0800

Sridhar R wrote on Mon, Feb 16, 2004 at 04:51:16AM -0800: 
,----
| was wondering how  to delete it.  I tried $ rm  \?\?  (failed - Nosuch
| file or directory)

| Then I  used vi to  view the directory.   That file is listed  as ^[^[
| Deleting (D) that asked for Delete /home/sridhar/dcc//n/a/q? y

| Now the file is deleted.  How to delete such file(s) in the shell? Why
| can't I escape those chars (?)
`----

it might  happen because the file actually  contained characters which
your term couldn't display properly. For example, try this:

$ touch ^V^G

$ ls 
.
..
...
?
...

$ rm \?
<err msg>

$ rm ^V^G
<No error message!>

$

some weird program might have puked before it died.

  -Suraj

-- 
,-----------------[http://www.symonds.net/~suraj/]---o
| Some astronomers believe Pluto's strange and erratic orbit indicates that it
| wasn't one of the original planets at all, but rather, a moon of Neptune that
| somehow broke loose.
`------------------------------[suraj@xxxxxxxxxxx]---o

Other related posts: