Help -- this seems simple!
Wietse Venema
wswietse at eutrc3.UUCP
Sun Apr 24 22:58:02 AEST 1988
In article <8932 at eddie.MIT.EDU> rich at eddie.MIT.EDU (Richard Caloggero) writes:
|
|
| Can anyone tell me why this script doesn't print anything?
|
| ----------
| #!/bin/sh
| set -vx
| names="-name '*.c' -o -name '*t*'"
| find . \( $names \) -print
|
| ----------
|
| It doesn't print anything!
| Thanx in advance.
Try eval:
names="-name '*.c' -o -name '*t*'"
eval find . \( $names \) -print
--
uucp: mcvax!eutrc3!wswietse | Eindhoven University of Technology
bitnet: wswietse at heithe5 | Dept. of Mathematics and Computer Science
surf: tuerc5::wswietse | Eindhoven, The Netherlands.
More information about the Comp.unix.questions
mailing list