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