Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 187 Bytes

extracts-certain-rows-from-a-file.md

File metadata and controls

13 lines (9 loc) · 187 Bytes

Extracts certain rows from a file

Print lines which does no contain 'n':

$ sed -n '/n/!p' file

Print lines which contain 'a' or 'b':

$ sed -n '/[ab]/p' file