home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / admin / 7255 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!gumby!yale!mintaka.lcs.mit.edu!spdcc!msimpson
  3. From: msimpson@spdcc.com (Michael L. R. Simpson)
  4. Subject: Re: Can't delete file name " | more " ?
  5. Message-ID: <1993Jan28.030651.19658@spdcc.com>
  6. Summary: Use "ls -i", followed by "find"
  7. Keywords: rm, file, delete
  8. Organization: Custom Training Institute, Los Angeles CA
  9. References: <1jh76kINN2fn@apache.genrad.com> <1993Jan21.230331.16284@ghost.dsi.unimi.it> <2059@frackit.UUCP>
  10. Date: Thu, 28 Jan 1993 03:06:51 GMT
  11. Lines: 24
  12.  
  13. > > >In article <1jh76kINN2fn@apache.genrad.com> jbm@apache.genrad.com (John A. Meneghini) writes:
  14. > > >>Below is a listing of the files in my directory:
  15. > > >>-rw-r--r--  1 jbm           790 Jan 14 10:58  | more
  16. > > >>-rw-r--r--  1 jbm           402 Jan 14 11:00  | more 
  17. > > 
  18.  
  19. Two-step process:
  20.  
  21. 1) Use "ls -i" to determine the inode numbers of the offending files
  22. Let's suppose the inode numbers are 125 and 250.
  23.  
  24. 2) Issue the following find command:
  25.  
  26.     find . \( -inum 125 -o -inum 250 \) -exec rm -f {} \;
  27.  
  28. You can substitute "-ok" for "-exec", if you want to explicitly confirm
  29. each deletion.
  30.  
  31. Mike Simpson
  32. Custom Training Institute
  33. Los Angeles, CA
  34. 213 969 8400
  35. -- 
  36.  
  37.