Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/usr/bin/escapepath utility: escape spaces on file names.
#!/usr/bin/ruby
# /usr/bin/escapepath utility: escape spaces on file names.
require 'shellwords'
puts(STDIN.gets.chomp.shellescape) while not STDIN.eof?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment