I am doing a find and then getting a list of files. How do I pipe it to another utility like cat (so that cat displays the contents of all those fi
find
cat
Here's my way to find file names that contain some content that I'm interested in, just a single bash line that nicely handles spaces in filenames too:
find . -name \*.xml | while read i; do grep '/dev/null; [ $? == 0 ] && echo $i; done