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 to break on the first space in the file name
for i in $(find -name "*.eml"); do cat $i | ./locatePipe.php; done
Some of the file names contain "@", "()", "-", ".", "[]", " ' " if that matters
I accomplished this using the following command
If you're using
bash
4, just skip usingfind
:Use the
-exec
option