cd /path/to/dir
find . -type f -name ‘*.html’ -exec grep -l “abcxyz” {} +

find . -type f -name ‘*.html’ -exec grep “abcxyz” {} +

for i in `ls /var/spool/mqueue/qf*`; do  grep ‘abcxyz’ $i && rm -f $i; done

This entry was posted on Tuesday, October 14th, 2014 at 10:03 am and is filed under Mẹo vặt của hiếu râu. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment