Redirecting stdout with find -exec and without creating new shell

You can do it with eval. It may be ugly, but so is having to make a shell script for this. Plus, it’s all on one line.
For example

find -type f -exec bash -c "eval md5sum {}  > {}.sum " \;

Leave a Comment