grep -inRsH 'Text to be searched' /path/to/dir (it can be. This will only return for a search of html if that exists on its own line separately. This grep command will give you a precise result when you are searching for specific text on Linux. -x - match only if the whole lines only.-f - used to indicate a file you want to use which contains a regular expression.searching for html with -v will return everything without html. html Hereâs the explanation of the command: find: The command used for file searching. For that, you can follow the following steps: find -type f -name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |