User Tools

Site Tools


sed:print:print_paragraph_if_it_contains_string

SED - Print - Print paragraph if it contains string

Print paragraph if it contains AAA (blank lines separate paragraphs)

sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;'

NOTE: HHsed v1.5 must insert a 'G;' after 'x;'

sed/print/print_paragraph_if_it_contains_string.txt · Last modified: 2020/08/16 12:57 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki