Re: Logical OR
| 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