Tips: Pipe command with find -exec

Sometimes, you need to pipe several commands with find -exec, you can do it using the sh command!

Example:

1
find . -exec sh -c 'cat $0 | rot13 | grep -q toto' {} \; -print

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>