Is there a version of the pick script that will work properly with spaces in the filenames?
This is a tricky question—pick is trivial to enhance to work with spaces in filenames, but the output is just the filenames—with no indication of where a fillename begins or ends.
My goal is to be able to say something like
for i in `pick .??*` ; do ... ; done
But that is, as far as I can tell, hopeless; even using the
$() syntax instead of the backticks, how do you get the filenames intact from the selection to the processing?
The only tool I can think of that comes close is
xargs -0, which lets me have arbitrary names -- but I don't know how to interface to that except from
EDIT: Pick is a script that takes a bunch of files, and asks you which ones you want or don't want.
See http://examples.oreilly.de/english_examples/upt3/split/pick for a sample. It's not complicated, but if you don't know how to redirect inside a shell script, or have never seen that construct before, it will be a surprise.
And yes, it outputs one filename per line.