home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3720 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  884 b 

  1. Path: sparky!uunet!olivea!decwrl!csus.edu!netcom.com!netcomsv!posix!hlj
  2. From: hlj@posix.COM (Hal Jespersen)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: file removal problem solved.
  5. Message-ID: <188@posix.COM>
  6. Date: 31 Aug 92 23:05:46 GMT
  7. References: <114.22393@incc.com>
  8. Organization: POSIX Software Group, Redwood City, CA
  9. Lines: 14
  10.  
  11. jerry@incc.com (Jerry Rocteur) writes:
  12. :   IN OTHER WORDS, DO AN ls -i OF THE PROBLEM FILE, STAY WITHIN THAT
  13. :   DIRECTORY, DO A find . -inum nnnn -exec rm {} \; WHERE nnnn IS THE
  14. :   NUMBER DISPLAYED TO THE LEFT OF YOUR FILES NAME, AND THAT IS IT,
  15. :   YOUR PROBLEM FILE IS DELETED...................
  16.  
  17. This is a nonportable solution that you're espousing.  Neither the POSIX
  18. shell spec nor XPG{3,4} include find -inum.  The SVID does.
  19.  
  20. I'd be interested to know why the more traditional rm -i ./A* solution
  21. didn't work for the original poster.
  22.  
  23. Hal
  24.