AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Grep cheat sheet8/8/2023 For example, grep -E '*error' file.txt will show all lines in file.txt that contain a number followed by the word “error”. Extended regular expressions add additional features, such as the ability to match multiple characters with a single expression. Regular expressions, or regex, are a powerful way to specify complex patterns to search for. -E: Interprets the pattern as an extended regular expression.For example, grep -r error /var/log will search for the word “error” in all files under the /var/log directory, including subdirectories. -r: Recursively searches subdirectories.For example, grep -l error *.log will show the names of all.
0 Comments
Read More
Leave a Reply. |