On Thu, Mar 26, 2009 at 05:59:14PM -0400, Chris F.A. Johnson wrote: > Chet, how about an option to mapfile that strips leading and/or > trailing spaces? > > Another useful option would be to remove newlines.
It already has the latter: -t Remove a trailing newline from each line read.