Skip to main content
5 events
when toggle format what by license comment
Dec 6, 2024 at 15:41 comment added markp-fuso @PrabhjotSingh that will leave block with a trailing \n; 'course, at that point print block would then need to be replaced with printf "%s", block to keep from printing any extra \n on the end
Dec 6, 2024 at 8:42 comment added learningregularexpressions @markp-fuso This is just brilliant!! This works perfectly. Thank you very much.
Dec 6, 2024 at 8:41 comment added Prabhjot Singh The inblock { block = block (block == "" ? "" : ORS) $0 } may be shortened to inblock { block = block $0 ORS } .
Dec 6, 2024 at 8:40 vote accept learningregularexpressions
Dec 5, 2024 at 19:25 history answered markp-fuso CC BY-SA 4.0