Yes, I know a couple work arounds, but more curious on how to get "rm"
to delete this file.
Doing an ls -lb
-rw-r--r-- 1 root other 196416 Jul 13 12:20 \177
1. assuming your shell has globbing on, just
rm -i ?
will present all the one letter files and you can choose
the one that isn't printable.
2. I think all solaris shells accept escape with ^V at the command line
rm ^V^?
where ^V and ^? represent control-V and the delete key
respectively.
--
7842++
http://www.faqs.org/faqs/unix-faq/faq/part2/section-2.html
has some hairy suggestions...
ls -lbi -> rm `find . -inum <found number>`
lg, Bernd
--
When emailing me, excuse my annoing spamfilter - it works for me.
Why all the fancy "find" and that sort of thing.
Go back to basics...
Just do rm \\177 or rm "\177"
rm -ri . # in the directory the file is in
just hit return until you get to the file
then type y
then hit whatever your interrupt is
Did you really try it?
My Solaris doesnt take it.
But this works the way you describe:
rm -i *
A similar solution:
with Midnight Commander, you can select/delete the file.
--
Michael Tosch @ hp : com
No I did not try it!
It did not like the "."
I suppose going up one directory and specifying the
directory name is a way -> "rm -ri directory_with_bad_file ".
Using * may not always work if the escape characters
are funny enough - I think - but then again I am not
going to try it.
.