WDI Wiki

  • Log in with Google
  • Browse Articles
  • Random Article

    how to make a ruby bash script

    Steps to Follow

    • First, put a shebang at the top of your program followed by '/usr/bin/env ruby'

    • This should look like:

    !/usr/bin/env ruby

    • Then make file executable using chmod +x

    • Then call it by ./program_name.rb (a path) {OR ADD IT TO YOUR PATH}

    Ruby
    bash
    shebang

    Last edit made by: Erica Kantor