Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    I might be missing something. But why not write a ruby script directly? Commented Dec 17, 2020 at 22:17
  • 1
    @EricDuminil there are two reasons: (1) to be able to do things in a different way (2) even the Unix and Linux Handbook authors think shell scripting might be dated from the 70's while Perl was from the 80's and Ruby and Python are from the 90's and have advanced quite a bit and may be able to do the job better. Then, how about if we make short commands using Ruby or Python, wrap them in a shell function, and have them directly inside .bashrc and .zshrc? We could have a bunch of scripts in the ~/bin folder but if we have a few short commands inside of .bashrc, that's easier to manage Commented Dec 17, 2020 at 22:40