ruby/shell
View on GitHub ↗ ★ 68 Ruby
Shell implements an idiomatic Ruby interface for common UNIX shell commands
3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2021-10-31 · latest 2024-07-17
20082026
-
…to do the same thing as a shell script. Kinda Master Foo and the Ten Thousand Lines†. Ruby's https://github.com/ruby/shell (which used to be bundled in Ruby itself) doesn't get much mention but is much more clear and useful to me. # system…
comment by lloeki · 2024-07-17 · in Introduction to Bash Scripting -
…do tail '-fq' '/var/log/nginx/access.log' | awk '{print $7}' | sort | uniq '-c' | sort '-rn' end https://github.com/ruby/shell#pipe-etcprintcap-into-a-file
comment by lloeki · 2023-05-18 · in The Case for Bash (2021) -
…https://stackoverflow.com/questions/4234119/ruby-pipes-how-d... (edit: using the shell library https://github.com/ruby/shell so, not out of box in ruby, unfortunately, which is a mortal sin for replacing bash in scripts =/) Here are the…
comment by nextaccountic · 2021-10-31 · in Bash functions are better than I thought