View Single Post
Old 08-15-2016, 09:28 PM   #13
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I vaguely suspected urlencoding might work. But I wasn't about to test it unless I had a motivation to do so manually typing things (without bash filename completion) gets increasingly awkward without copy-paste and on a small touchscreen.

So, good of you to find out for us.
For however useful it is to ensure pre-existing, stable filenames embedded in a script can be embedded with spaces in them.

...

Also, it is probably both more efficient and more portable to do it all in awk: https://gist.github.com/moyashi/4063894
eschwartz is offline   Reply With Quote