Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!garnet.berkeley.edu!ked From: ked@garnet.berkeley.edu (Earl H. Kinmonth) Newsgroups: comp.unix.xenix Subject: Re: need help for SCO Xenix Sys V 286. ver 2.1.3 Keywords: removal of odd files, files have non-ascii chars in name! Message-ID: <23770@agate.BERKELEY.EDU> Date: 29 Apr 89 16:21:41 GMT References: <1689@wasatch.utah.edu> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 32 In article <1689@wasatch.utah.edu> ch-tkr@wasatch.utah.edu (Timothy K Reynolds) writes: >My Problem: we are removing some old users from the system. But we can't >clean their directories due to some odd files which still exist. The files >apparently have non-ascii characters in them (as determined by "ls > tmp" >and trying to edit tmp in vi. > >Anybody out there know how to get around this problem? I would really >appreciate your help with this matter. One way is to pipe the output of find into a simple program that unlinks files as in find . -type f -print | zapcrap where the program zapcrap is #include char ls[BUFSIZ]; main() { while(gets(ls)) unlink(ls); } Earl H. Kinmonth History Department University of California, Davis 916-752-1636 (voice, fax [2300-0800 PDT]) 916-752-0776 secretary ucbvax!ucdavis!ucdked!cck