Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created March 13, 2010 13:01
Show Gist options
  • Save lxneng/331307 to your computer and use it in GitHub Desktop.
Save lxneng/331307 to your computer and use it in GitHub Desktop.
#cat in ruby
vim rcat
#!/usr/bin/env ruby
# Usage: rcat [file ...]
puts ARGF.read
chmod +x rcat
./rcat rcat
#!/usr/bin/env ruby
# Usage: rcat [file ...]
puts ARGF.read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment