<make-a-list> | while read x; do <pretty-much-whatever> "$x"; done
which should get around the list length limitations and
provides for doing "extras" between the "do" and the "done".
Specifically:
find /path/to/files/ -mtime -2 -print | \
while read x; do grep "expression" "$x"; done
same as -exec
works but forks a process for each single file - slow
-exec and + or xargs do the job
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"