Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!peregrine!zardoz!conexch!root From: root@conexch.UUCP (Larry Dighera) Newsgroups: comp.unix.xenix Subject: Removing 8-bit filenames. (Was: Re: ARC for Xenix) Summary: It's a kludge, but it works. Message-ID: <22075@conexch.UUCP> Date: 7 Feb 89 16:33:50 GMT References: <14212@cup.portal.com> <138@usource.UUCP> Reply-To: root@conexch.UUCP (Larry Dighera) Distribution: usa Organization: The Consultants' Exchange, Orange County, CA. (714) 842-6348 Lines: 31 >In article <14212@cup.portal.com>, compata@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