home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5479 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  882 b 

  1. Path: sparky!uunet!mcsun!sun4nl!cwi.nl!dik
  2. From: dik@cwi.nl (Dik T. Winter)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Is there a "foreach" loop control in ksh?
  5. Message-ID: <8714@charon.cwi.nl>
  6. Date: 23 Jan 93 03:20:10 GMT
  7. References: <1304@alsys1.aecom.yu.edu> <1993Jan22.173754.17016@i88.isc.com>
  8. Sender: news@cwi.nl
  9. Organization: CWI, Amsterdam
  10. Lines: 11
  11.  
  12. In article <1993Jan22.173754.17016@i88.isc.com> katzung@i88.isc.com (Brian Katzung) writes:
  13.  > |In particular, I want to run compress on each file in the directory
  14.  > |that does not already end in a .Z
  15.  > 
  16.  >     find ..?* .[!.]* * -prune ! -type f -name '*.Z' -print 2> /dev/null |
  17.  >     xargs compress
  18. Better put the exclamation point before -name.
  19. But I think this is a bit of overkill.
  20. -- 
  21. dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland
  22. home: bovenover 215, 1025 jn  amsterdam, nederland; e-mail: dik@cwi.nl
  23.