Sometimes, We need to find out specific string of text in the files' Contents of a directory of linux system. Its to look for text within the file, no tin the file name.
In such case we can user the below command:
grep -r -l "specific test" /directory/path/full/*criteria_if_required_in_file_name*log
In such case we can user the below command:
grep -r -l "specific test" /directory/path/full/*criteria_if_required_in_file_name*log
No comments:
Post a Comment