Skip to content

Instantly share code, notes, and snippets.

@yaauie
Created September 6, 2012 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaauie/5513605b94c8e8c61a16 to your computer and use it in GitHub Desktop.
Save yaauie/5513605b94c8e8c61a16 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
unless (1..2).include? ARGV.size
STDERR.write("usage: #{File.basename $0} filename [dirstring]\n")
exit 1
end
puts File.expand_path( *ARGV )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment