Comments on: Smart ranges in awk https://backreference.org/2010/09/11/smart-ranges-in-awk/ Proudly uncool and out of fashion Tue, 07 Jan 2014 18:09:53 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: waldner https://backreference.org/2010/09/11/smart-ranges-in-awk/#comment-24826 Wed, 05 Dec 2012 12:52:50 +0000 http://backreference.org/?p=846#comment-24826 In reply to Jotne.

Well...yes, good catch. Thanks!

]]>
By: Jotne https://backreference.org/2010/09/11/smart-ranges-in-awk/#comment-24825 Wed, 05 Dec 2012 12:36:11 +0000 http://backreference.org/?p=846#comment-24825 awk '/BEGIN/,/END/{if (!/BEGIN/&&!/END/)print}'
can be done like this
awk '/BEGIN/,/END/{if (!/BEGIN|END/)print}'

]]>