Yes...
Karls-Mac-mini:Desktop karl$ grep -C1 4003 MyData.txt 4002_1#2 4003_1#3 4004_1#4
...but do you really want to qx this on a 4 GByte file? Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re^2: How to print the lines immediately above and below a matching line?
by karlgoethebier
in thread How to print the lines immediately above and below a matching line?
by Bio90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |