- grep command examples
$ grep -i "the" demo_file
Print the matched line, along with the 3 lines after it.
$ grep -A 3 -i "example" demo_text
Search for a given string in all files recursively
- $ grep -r "linuxcare" *
More grep examples: Get a Grip on the Grep! – 15 Practical Grep Command Examples
0 comments:
Post a Comment