Tag Info

New answers tagged


I can come up with this Python script that takes a file name as command-line argument and outputs the entire content, but without all lines which don't have the string oint (case-insensitive) in all columns. #! /usr/bin/env python3 import sys COLUMN_SEPARATOR = " " # character or string used as column separator. Tab = "\t" SEARCH_STRING = "oint".lower() ...


I recently faced this issue and took a different approach, so thought of sharing it. This happens when the ruby file is not present in the directory mentioned. So create a symbolic link to the ruby file in the directory and your error should be fixed. cd /usr/bin/env ln -s /usr/local/rvm/rubies/ruby-2.1.1/bin/ruby


apt-get install ruby2.2 does give you a ruby executable - it's just called ruby2.2. Gem and irb are the same (i.e. gem2.2 install bundler will work, irb2.2 will give you an irb prompt.) This is normal in Ubuntu and the alternatives system generally means you don't have to care about it, but for whatever reason ruby isn't managed by alternatives in Ubuntu. ...

Top 50 recent answers are included