|
Parallel Visions: City of Angels City of Demons ebook and trade paperback available on Amazon (or here). |
![]() |
|||
hello_world.rb
This simple "hello world" script shows how to run ruby code directly as a shell script.
Make this the first line of the file:
#!/usr/bin/env ruby
And make it executable by:
chmod u+x hello_world.rb
Source
#!/usr/bin/env ruby
# hello_world.rb
# don't forget to chmod u+x hello_world.rb
puts 'Hello World from Ruby as a shell script.'
- Ruby (computer language)
- hello_world.rb
- read_filtered_lines.rb
- read_lines_recurse.rb
- Sandbox ruby
- Ruby (Computer Language) (category)
- (v)
Categories[edit]
- Example (category)
- Has Data Table (category)
- Has Layout (category)
- Has LayoutPre (category)
- Has Nav (category)
- Has Navbox (category)
- Has Tags (category)
- Ruby (Computer Language) (category)
- Ruby Example (category)
- Ruby Script (category)
- Script (category)
- Shell Script (category)
- Shell Script Example (category)
