[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Keep space separated values sane in a bash "for" loop?
On Thu, 5 Apr 2007 20:13:06 -0400 aaron wrote:
A> Here's technique that might help. I whipped this up for dealing with
A> spaced names common to audio file that I wanted to batch convert
A> to mp3. Works with bash on Mac -- should work with Linux bash as
A> well. The trick was to pipe the file listing to READ from STDIN instead
A> of letting a FOR loop parse the input:
This works great for embedded spaces, but not so much for spaces at the
beginning or end of a file name...