Ghost file

WU SHI-KUEI wu at spot.Colorado.EDU
Fri Nov 18 03:15:40 AEST 1988


In article <6512 at galbp.LBP.HARRIS.COM> mhw at wittsend.UUCP (Michael H. Warfield (Mike)) writes:
>In article <17529 at adm.BRL.MIL> ZAT011%DJUKFA11.BITNET at cunyvm.cuny.edu (Thomas Heil) writes:
[much stuff deleted]
>     Yeah.  It isn't a ghost file, it's a file with a non-printing character
>in the name (like a space or a tab or a bell ....). 

This works on AT&T 3B2's and Ultrix:

Find the inumber of the file with 'ls -i'. Then do

	find . -inum inumber -exec rm {} \;
or
	find . -inum inumber -exec mv {} foo \;

or whatever your little heart desires.  The '-inum' expression was
documented in the 7th Edition manuals and has been available in all AT&T
releases ever since - SYS III, IV and V, even though not documented.  It
was a pleasant surprise to find that Ultrix at least did something right!

Just a guest here.  In reality
Carl Brandauer
{uunet!stcvax}!nbires!bdaemon!carl



More information about the Comp.unix.wizards mailing list