我试图做我认为应该是一个非常基本的脚本作为我的第一个 ruby 代码。也许有人可以帮助我解决正在发生的事情。
./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"