grep file in the subdirectory
The 'grep' function can only use in the current directory, how to grep file into the subdirectory ? Thx.
|
Try adding -d recurse to your grep search when using a directory as a source. As an example, from /, type:
grep -d recurse DHCP /etc -mk |
You can also use find with grep to narrow down your search. For example:
find /etc -type f -exec grep DHCP {} \; |
Quote:
find /etc -type f -print|xargs grep DHCP |
All times are GMT -5. The time now is 07:39 AM. |