Grep a file, but show several surrounding lines?
http://stackoverflow.com/questions/9081/grep-a-file-but-show-several-surrounding-linesEx:
[bear-bld-lnx:/auto/tftp-nbardevtest]>grep -A 3 "a,fed,bmalloc" /auto/tftp-nbardevtest/outputfile_20160210231010.log
a,fed,bmalloc
Dependent Head 10 22 1728
Summary 790 802 1728
--
a,fed,bmalloc
Dependent Head 10 25 2160
Summary 790 805 2160
--
a,fed,bmalloc
Dependent Head 10 25 2160
Summary 790 805 2160
--
a,fed,bmalloc
Dependent Head 10 25 2160
Summary 790 805 2160
No comments:
Post a Comment