Here is very simple trick to force the grep command to display file name, when it’s used together with find operation.
Just write /dev/null as the “second file”
find . -type f -exec grep somestring {} /dev/null \;
|
|||||
grep in find command: how to display file namesHere is very simple trick to force the grep command to display file name, when it’s used together with find operation. find . -type f -exec grep somestring {} /dev/null \; Leave a Reply |
|||||
|
Copyright © 2012 MemoSoup - All Rights Reserved Powered by WordPress & Atahualpa |
|||||