Path: utzoo!attcan!uunet!husc6!mailrus!cwjcc!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.unix.wizards Subject: Re: Ghost file Message-ID: <13171@ncoast.UUCP> Date: 24 Nov 88 19:09:39 GMT References: <17529@adm.BRL.MIL> <8430@alice.UUCP> <169@pinn.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.unix.wizards Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 28 As quoted from <169@pinn.UUCP> by sysop@pinn.UUCP (Andy Johnson): +--------------- | In article <8430@alice.UUCP>, debra@alice.UUCP (Paul De Bra) writes: | > In article <17529@adm.BRL.MIL> ZAT011%DJUKFA11.BITNET@cunyvm.cuny.edu (Thomas Heil) writes: | > I would suspect that the name of the ghost file contains a non-printable | > character, which doesn't show up when you try ls. A way to find out is | > to make an octal dump of the directory. | | You can also type in rm -i * That will interactively ask you to delete | each file including the ghost file. +--------------- Not always. Line noise can create files with the 8th bit set in some characters, and older shells without 8th-bit support will botch the filenames, resulting in "rm: not found" or whatever. My Q&D solution is to "ls -b" into a file, edit the file to generate a C program with the filename hardcoded in it, and compile and run the program. Dired also works for this, although the version we have on ncoast chokes on directories that contain more than a few files. ++Brandon -- Brandon S. Allbery, comp.sources.misc moderator and one admin of ncoast PA UN*X uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu allberyb@skybridge.sdi.cwru.edu allbery@uunet.uu.net comp.sources.misc is moving off ncoast -- please do NOT send submissions direct Send comp.sources.misc submissions to comp-sources-misc@.