Created
April 1, 2014 13:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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