News for hackers. Stuff that matters.
Re:The Awk Programming Language (1988) [pdf] by greenleafjacob on Thursday May 24, 2018 @04:23AM (#17142109)
In fact the boilerplate you describe is mostly redundant if you use perl -p since perl -p results in your program running with this wrapper:

    LINE:
    while (<>) {
	...		# your program goes here
    } continue {
	print or die "-p destination: $!\n";
    }
Re:The Awk Programming Language (1988) [pdf] by flukus on Thursday May 24, 2018 @08:45PM (#17149773)
Correct me if I'm wrong, but this will only be line based won't it? As far as I can tell there is no equivalent of FS/RS/OFS/ORS that make awk the record (not line) based language it is.