Useful for commands : find, grep
Sample use of 'find'
>> find location -name 'string name or something'
>> find location -name 'string name or something' | xargs command
>> find / -type f | xargs grep -l pattern
or from current working dir
>> find . -type f | xargs grep -l 'string that you want'
Sample use of 'grep'
>> grep -r 'string you want'
# -l that display only filename.
>> grep -rl 'string you want'
>> find location -name 'string name or something'
>> find location -name 'string name or something' | xargs command
>> find / -type f | xargs grep -l pattern
or from current working dir
>> find . -type f | xargs grep -l 'string that you want'
Sample use of 'grep'
>> grep -r 'string you want'
# -l that display only filename.
>> grep -rl 'string you want'
Comments
Post a Comment