grep -q 'SOME_PATTERN' 'SOME_FILE' & echo $? The following example shows that ‘SOME_PATTERN’ presents in ‘SOME_FILE’. Here are some examples of checking if the string, that contains some pattern, presents it the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |