Thursday, December 17, 2015

To get the lines between the two pattern in a file in BOSS Linux



To get the lines between the two pattern in a file.txt use the following sed command format



sed -n "/pattern1/,/pattern2/p" file.txt

No comments:

Post a Comment

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...