How do I use Ruby for shell scripting?

前端 未结 13 1990
粉色の甜心
粉色の甜心 2020-12-22 15:26

I have some simple shell scripting tasks that I want to do

For example: Selecting a file in the working directory from a list of the files matching some regular e

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 16:21

    This might also be helpful: http://rush.heroku.com/

    I haven't used it much, but looks pretty cool

    From the site:

    rush is a replacement for the unix shell (bash, zsh, etc) which uses pure Ruby syntax. Grep through files, find and kill processes, copy files - everything you do in the shell, now in Ruby

提交回复
热议问题