The resulting output will be every line containing the pattern text: The first argument, GNU, is the pattern you’re searching for, while the second argument, GPL-3, is the input file you wish to search. This means that if you pass grep a word to search for, it will print out every line in the file containing that word.Įxecute the following command to use grep to search for every line that contains the word GNU: In the most basic form, you use grep to match literal patterns within a text file. Now that you have the files, you can start working with grep.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |