Xref: utzoo comp.unix.xenix:6001 comp.unix.questions:13622 comp.unix.wizards:16156 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!grebyn!johnk From: johnk@grebyn.COM (John Kennedy) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: Re: Ugly file name Keywords: find Message-ID: <11967@grebyn.COM> Date: 16 May 89 11:02:56 GMT References: <128@tdl.UUCP> <7170@bsu-cs.bsu.edu> <1614@auspex.auspex.com> <1233@oswego.Oswego.EDU> Distribution: usa Organization: Second Source, Inc., Annapolis, MD Lines: 29 Here's how I remove files with ugly names 1) First, do a ls -l on the directory containing the ugly file, yielding something like: -rw-r--r-- 1 uglyowner 39 Apr 25 08:00 uglyname 2) Then, select some fairly unique attributes of that file, such as the owner and size, maybe the creation date, etc. 3) Verify that no other files share these attributes, by find -user uglyowner -size 39c -print 4) When you satisfied that you have uniquely described the ugly file, change the above line to find -user uglyowner -size 39c -exec rm {} \; This should get rid of the ugly file without having to name it. -- John Kennedy | Second Source, Inc. johnk@opel.UUCP | Annapolis, MD