<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".

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
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to