Search Results

Search: Posts Made By: airman_ole
235,427
Posted By airman_ole
grep -n lines before and after
Hi,

is it possible to grep a pattern that will include the "n" lines before and after the line where the pattern have been found?

e.g.

#this contains the test.file
line1
line2
line3...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy