[ale] Keep space separated values sane in a bash "for" loop?

Robert Story rstory-l at 2006.revelstone.com
Fri Apr 6 12:18:08 EDT 2007


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...



More information about the Ale mailing list