News for hackers. Stuff that matters.
Re:Show HN: gq – like jq or zq, but you use Go by NAR8789 on Wednesday April 27, 2022 @04:07PM (#31185077)
oneliners are generally nicer for fast data exploration than one-off scripts. With a oneliner I can get started instantly, and build incrementally. With a one-off script my first step is boilerplate input handling.

Maybe a nice middle ground would be for more language runtimes to have an equivalent to perl's `-p` flag. https://perldoc.perl.org/perlrun#-p

This flag is so convenient that I mostly use `perl -pe` instead of `sed` for regex search-and-replace.

There are no comments on this comment yet.