Re: Logical OR

"Lars Noodén [email protected] [sed-users]" <[email protected]> Sat, 7 Jan 2017 12:00:27 +0200
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 01/07/2017 11:36 AM, Scott Walters [email protected]
[sed-users] wrote:
> hi, try this. 
> netstat -ntlp | sed -n -e '1,2{p; d;}; /sshd/p'
> 
> it will definitely print the first 2 lines, and later will print
> lines only which have /sshd/ as a pattern in them. tys

Thanks.

/Lars