Ruby cannot find puts and other commands?
macos, ruby
Solution
first line of file should be:
#!/usr/bin/ruby
Problem
I was attempting to do what I thought should be a very basic script as my first bit of ruby code. Perhaps someone can help me out with what's going on. ``` ./delete_file.rb: line 3: puts: command not found ./delete_file.rb: line 4: auth_token: command not found ./delete_file.rb: line 6: puts: command not found User1$ cat delete_file.rb # /usr/bin/ruby # Delete file script puts "Enter current token" auth_token = gets.chomp puts "data goes here" + auth_token + "more data here" ```