Grep command you can use to search a specified string in all files in the directory path you have given
grep "string to search" /var/*
so this will search string to search in /var/ directory files.
another variation :
find . -type f -exec grep -i "string to find" {} \; -print
or you can use
grep "string to search" *.htm --> this will search for the string to search in all htm files
There can be more options as always :) try and find more.
grep "string to search" /var/*
so this will search string to search in /var/ directory files.
another variation :
find . -type f -exec grep -i "string to find" {} \; -print
or you can use
grep "string to search" *.htm --> this will search for the string to search in all htm files
There can be more options as always :) try and find more.
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......