That egrep command searches for those three strings (regular expressions, really) in all files in the current directory. An easier egrep commandīefore I go away, here's an easier egrep command to look at: Also, no need to escape the slashes in grep, or generally most sane regex implementations (though there are a few notable exceptions which use slash as the regex delimiter, but then thats a feature of the language, not of its regex implementation. While my original locate -i calendar command shows nearly 3,000 files, the locate command combined with grep and egrep in this manner shows only 15 files. I used the -v argument to perform the "opposite" meaning of a normal egrep command, so strings with these patterns were not shown and also used the -i argument to perform a case insensitive egrep search here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |