Linux Terminal Glossary
›
Text Processing
grep -A 3 'pattern' file.txt
Category:
Text Processing
grep -A 3 'pattern' file.txt
Copy command
Print 3 lines of context after each match
Shows the 3 lines following each match so you have context about what comes after the pattern.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.