Answers for "how to grep lines before a pattern"

1

how to grep lines before a pattern

cat abc.txt | grep -A 3 "your_pattern"  # will grep 3 lines after your pattern..
Posted by: Guest on January-31-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language