Removing 8-bit filenames. (Was: Re: ARC for Xenix)

Larry Dighera root at conexch.UUCP
Wed Feb 8 02:33:50 AEST 1989


>In article <14212 at cup.portal.com>, compata at cup.portal.com (Dave H Close) writes:
> 2.  Once I have such a strange filename in my directory, how
> 	can I remove it or rename it? 


The program below can be edited so that the portion between double quotes
matches the name of the file you wish to remove.  Compile, run, and the 
rogue file is gone forever.


main()
{
	char *buffer = "d\346ggh\352k\343vbn\40m";
	unlink(buffer);
}


I use

		 ls | od -c
	
to find the name I want to put between double quotes above.  I suppose 
you could use ls -b as well.

Larry Dighera

-- 
USPS: The Consultants' Exchange, PO Box 12100, Santa Ana, CA  92712
TELE: (714) 842-6348: BBS (N81); (714) 842-5851: Xenix guest account (E71)
UUCP: conexch Any ACU 2400 17148425851 ogin:-""-ogin:-""-ogin: nuucp
UUCP: ...!uunet!turnkey!conexch!root || ...!trwrb!ucla-an!conexch!root



More information about the Comp.unix.xenix mailing list