avoid typing ruby each time on Unix/Linux systems by adding a shebang line (#!) at the top of your Ruby file. : shebang line « Language Basics « Ruby






avoid typing ruby each time on Unix/Linux systems by adding a shebang line (#!) at the top of your Ruby file.



#!/usr/local/bin/ruby
# a nice greeting for Tom
puts "Hello, Tom!"

 

Related examples in the same category

1.Using a Shebang Line on Unix/Linux