Weird File Names (Removing them)

Derek E. Terveer det at hawkmoon.MN.ORG
Sun Feb 26 20:53:43 AEST 1989


In article <167 at usource.UUCP>, frankb at usource.UUCP (Frank Bicknell) writes:
> Safer would be:
>
>  		find . -inum inode -exec rm -i {} \;
>
> or use a fix program which does this only to the file in the
> current filesystem (where _is_ that source code?).

The newer OS equivalents for this command that is restricted to a single fs
would be:

		/* bsd -- don't cross(X) over to another device(DEV)
		 */

		find . -xdev -inum inode -exec rm {} \;

		/* sysv -- stay on own mounted fs
		 */

		find . -mount -inum inode -exec rm {} \;

-- 
Derek Terveer 	    det at hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det
		    w(612)681-6986   h(612)688-0667

"A proper king is crowned" -- Thomas B. Costain



More information about the Comp.unix.xenix mailing list