Created
August 11, 2009 14:41
-
-
Save EmmanuelOga/165867 to your computer and use it in GitHub Desktop.
/usr/bin/escapepath utility: escape spaces on file names.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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