Grep command
Fri Oct 07 2022 10:18:46 GMT+0000 (Coordinated Universal Time)
Saved by @Shokunbi
You can use the -B and -A to print lines before and after the match. grep -i -B 10 'error' data
Fri Oct 07 2022 10:18:46 GMT+0000 (Coordinated Universal Time)
Saved by @Shokunbi
You can use the -B and -A to print lines before and after the match. grep -i -B 10 'error' data
Comments