grep -R -i -n 'string' * > result.txt
#!/bin/sh FILES=`ls *.php` for i in $FILES; do echo "$i"; echo "## $i\n" >> search.result; cat $i | grep 'wget' >> search.result; done exit 0
cat * | awk '/wget/ {print "File: " FILENAME " - " $0}'