Xref: utzoo unix-pc.general:2136 comp.sys.att:5380 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!keysec!scott From: scott@keysec.UUCP (Scott Bartram) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: Problem removing a file Message-ID: <102@keysec.UUCP> Date: 30 Jan 89 01:09:23 GMT References: <695@flatline.UUCP> Reply-To: scott@keysec.UUCP (Scott Bartram) Organization: Key Systems Engineering Corp., Laurel, MD Lines: 39 Having run up against this problem on various occasions, I can offer several solutions: First, find the real name of the file: 1. use "ls -b" to display non-printing chars in octal, or if this fails 2. type "od -c . | more". This will display the current directory (including removed files). It will look something like this: 0000000 004 271 . \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000020 001 023 . . \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000040 004 302 . p r o f i l e \0 \0 \0 \0 \0 \0 0000060 003 ; . o l d n e w s r c \0 \0 \0 \0 0000100 000 000 . r n h e a d \0 \0 \0 \0 \0 \0 \0 Lines with "000 000" are deleted files. So now you should know the actual file name. Second, remove the file: 1. try using "echo": rm `echo "foo\007bar"` 2. write a simple C program: main() { unlink("foo\377bar"); } -scott -- ============================================================= Scott Bartram Key Systems Engineering VOICE: +1 301 731 7310 4404 Cavalcade Ct. EMAIL: uunet!keysec!scott Burtonsville, MD 20866