Ugly file name
    John Kennedy 
    johnk at grebyn.COM
       
    Tue May 16 21:02:56 AEST 1989
    
    
  
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 <directory> -user uglyowner -size 39c -print
4)  When you satisfied that you have uniquely described the ugly file,
    change the above line to
  
    find <directory> -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 at opel.UUCP         |        Annapolis, MD
    
    
More information about the Comp.unix.xenix
mailing list