How do I use Ruby for shell scripting?

前端 未结 13 1961
粉色の甜心
粉色の甜心 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:11

    let's say you write your script.rb script. put:

    #!/usr/bin/env ruby
    

    as the first line and do a chmod +x script.rb

提交回复
热议问题