Tag: Ruby

Double space a file using Ruby

Double space a file with Ruby using the command ruby -pe ‘puts’ < file.txt

Installing Rails

You can install Rails in a Fedora system with these commands… yum -y install ruby ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri…

Run a Command if Another Command Succeeds

This will let you run a linux command based on the success of anther command. Note: This will only work…

Find if a Variable is Defined in Ruby

This will let you find whether a variable is defined in ruby. if(defined? var_name) then print var_name + ” is…

Installing a Ruby Gem

Use this command to install a ruby gem in Linux – you must be connected to the net sudo gem…