Skip to content

Instantly share code, notes, and snippets.

@pi-chan
Created April 1, 2014 13:45
Show Gist options
  • Save pi-chan/9914275 to your computer and use it in GitHub Desktop.
Save pi-chan/9914275 to your computer and use it in GitHub Desktop.
Using Ruby command line options by Arjan van der Gaag http://arjanvandergaag.nl/blog/using-ruby-command-line-options.html
#!/usr/bin/env ruby -w -n -i -F, -l -a
BEGIN { $, = ';' }
print $., *$F unless $F[5] != 'Suriname' || /^# /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment