To get the lines after from matching line use following pattern
input-text | grep -A NUM pattern-to-match
NUM is specify the number lines to printed or taken from input text
for example:
sudo ausearch -f / |grep -A 4 "Jun 8"
2:
To get the lines before from matching line use following pattern
input-text | grep -B NUM pattern-to-match
NUM is specify the number lines to printed or taken from input text
for example:
sudo ausearch -f / |grep -B 4 "Jun 8"
Subscribe to:
Post Comments (Atom)
Linux Kernel Compilation
Step 1: Install Required Packages Install additional packages before building a kernel. To do so, run this command: sudo apt-get install gi...
-
This process will common for all HP Printers like HP LJ P 1007, P1020,P1020 plus,1022,3050 MFP, M 5035 MFP,P 2015N and Configuring the HP ...
-
.Open the System -> Printing -> add 2.Then Select the Printer Connected to Parallel Port or Detected Printer name is TVS MSP 455XL...
-
Required Steps: HP Smart Install is a service running on firmware which You can det ect and disable Smart Inst all using t he 1. Usi...
No comments:
Post a Comment