EmmanuelOga (owner)

Revisions

gist: 165867 Download_button fork
public
Description:
/usr/bin/escapepath utility: escape spaces on file names.
Public Clone URL: git://gist.github.com/165867.git
Embed All Files: show embed
Ruby #
1
2
3
4
#!/usr/bin/ruby
# /usr/bin/escapepath utility: escape spaces on file names.
require 'shellwords'
puts(STDIN.gets.chomp.shellescape) while not STDIN.eof?