Ruby Shell Command

Let’s use shell command in Ruby.
Ruby is script, so we sometimes do some operations in Ruby script.
Shell command is useful for it.

exec

Most easiest way and realistic way is exec

exec 'date'

We need ”

Ref

6 Ways to Run Shell Commands in Ruby