Skip to content

Instantly share code, notes, and snippets.

@EmmanuelOga
Created August 11, 2009 14:41
Show Gist options
  • Save EmmanuelOga/165867 to your computer and use it in GitHub Desktop.
Save EmmanuelOga/165867 to your computer and use it in GitHub Desktop.
/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