How do I use Ruby for shell scripting? - Stack Overflow

Link: How do I use Ruby for shell scripting? - Stack Overflow: "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 expression. I know that I can d..."