Ugly file name
    John Hevelin 
    jackh%twinpeaks at Sun.COM
       
    Wed May 17 03:44:16 AEST 1989
    
    
  
    This has always worked for me, but I haven't
tested it against every conceivable possibility.
1. I use "ls -i" to obtain the i-number of the ugly
   file:
   % ls -i
     12345 ugly'"^H^G&     98765 goodfile2
     67890 goodfile1       43210 xyzzy
2. Then I use "find" to remove the file:
   % find . -inum 12345 -exec rm {} \;
3. If I want to save the contents of the file before
   removing it, I do something like:
   find . -inum 12345 -exec cat {} \; > goodfile
    
    
More information about the Comp.unix.xenix
mailing list