Skip to content

Instantly share code, notes, and snippets.

@spheromak
Created July 10, 2011 04:38
Show Gist options
  • Save spheromak/1074277 to your computer and use it in GitHub Desktop.
Save spheromak/1074277 to your computer and use it in GitHub Desktop.
rev unix cmd in ruby
#!/usr/bin/env ruby
ARGF.each_line { |e| puts e.chomp.reverse }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment