Navigation |
Sed's N equivalent in Perl paragraph modeHi, I want to remove this and next paragraph when criteria is met in this paragraph. If expressed in sed, it'll be: sed -paragraph_mode '/criteria/{N; d; }' I tried the following in Perl, but neither works: perl -n000e 'if (/criteria/) { next; next; }' or, perl -n000e ' if (/criteria/) { next; $skip_next=1; } |
SearchFree Online File ConvertersBrowse archivesRecent posts
|