I need to run the following command with a for loop
cat Locate\\ Message.eml | ./locatePipe.php
I am trying the following however it seems
I accomplished this using the following command
find -name '*.eml' | while read email; do cat "$email" | ./locatePipe.php; done
If you're using bash
4, just skip using find
:
shopt -s globstar
for i in **/*.eml; do
cat "$i"
done | ./locatePipe.php
Use the -exec
option
find -name '*.eml' -exec cat {} + | ./locatePipe.php