4

grep multiple strings

view full story
linux-howto

http://www.linuxquestions.org – Hi, I have a text file with following content. interface TenGigE0/1/0/0 interface TenGigE0/0/0/0 interface TenGigE0/0/0/1 flow ipv4 monitor TEST sampler TEST-SAMPLER ingress interface TenGigE0/0/0/2 interface TenGigE0/0/0/3 flow ipv4 monitor TEST sampler TEST-SAMPLER ingress interface TenGigE0/0/0/4 interface TenGigE0/0/0/5 interface TenGigE0/0/0/6 What will be the correct Linux syntax(grep, egrep?) to get the following output. interface TenGigE0/0/0/1 flow ipv4 monitor TEST sampler TEST-SAMPLER ingress interface TenGigE0/0/0/3 flow ipv4 monitor TEST sampler TEST-SAMPLER ingress Any h (HowTos)