Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
aboutruby
· 7y ago · 0 comments
My favorite thing has been `| ruby -e "puts STDIN.to_a. ..."`, allows to run any kind of code on the standard input, much easier than remembering awk/sed various options and much more powerful.
edit: same thing can be done with Python/Perl
Comments
[–]
apabepa
7y ago
Yes, easier if you know ruby.. sed/awk is good for munching strings in small scripts and it is also always installed on a unix system (AFAIK).
[–]
dredmorbius
7y ago
You'll find sed and awk in busybox, virtually always, even on minimal systems. Including embedded devices, routers, Android, etc.