4 ms·
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-o
by NAR8789 4y ago
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 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.