James Youngman wrote:
> While "-exec sh ..." would change this behaviour, don't do that as it is
> very insecure.
Insecure? In what way?
I envision something like this:
find . -name "foo*" -exec sh -c "file {} >{}.tmp" \;
Of course running this repeatedly is a problem unless it gets more
complicated to avoid creating more files than desired.
find . -name "foo*.tmp" -prune -o -name "foo*" -exec sh -c "file {} >{}.tmp"
\;
What problem should I be aware of in the above?
Thanks
Bob
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils