Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!uwvax!uwmacc!jwp From: jwp@uwmacc.UUCP (Jeffrey W Percival) Newsgroups: net.unix-wizards Subject: Re: Summary of how to remove file with NULL names Message-ID: <2136@uwmacc.UUCP> Date: Wed, 23-Apr-86 12:21:53 EST Article-I.D.: uwmacc.2136 Posted: Wed Apr 23 12:21:53 1986 Date-Received: Sat, 26-Apr-86 03:17:50 EST References: <306@chinet.UUCP> Reply-To: jwp@uwmacc.UUCP (Jeffrey W Percival) Distribution: net Organization: UWisconsin-Madison Academic Comp Center Lines: 26 Summary: Not in 2.8BSD! In article <306@chinet.UUCP> megabyte@chinet.UUCP (Mark E. Sunderlin) writes: >Here is the consensis of the net on how to remove files with >strange and weird characters in their names. > >uokmet!kwthomas,mtgzy!ecl,necis!geo,pegasus!hansen,BRL.ARPA!gwyn >jplgodo!steve ,and Robert Sanford whose address I lost in >the depths of vi and lines over 80 columns long. > >>The files have characters over \177 (decimal = 127) in them. >>Here is a program that uses the "unlink" system call to remove >>files with funky names. I didn't see the original posting, but this does NOT work in 2.8BSD. I had many such files created by a user doing a "split -2" on a many thousand line file thinking it would result in 2 files, not many 2-line files, and split merrily created files with bizarre names. The *only* thing that worked was doing a clri on each file, then doing a filecheck to clean things up. I even ran a program that opened and read the directory file, to make sure that the argument to unlink() was *exactly* right, but to no avail. Just thought you'd like to know. p.s. Many thanks to all the folks who advised me on this problem last year... -- Jeff Percival ...!uwvax!uwmacc!jwp