On Thu 27 Mar 2014 08:01:45 Greg Wooledge wrote: > files=() > while IFS= read -r -d '' file; do > files+=("$file") > done < <(find . -iname '*.mp3' ! -iname '*abba*' -print0)
i've seen this construct duplicated so many times :(. i wish we had a native option for it. maybe something like: read -A files -r -d '' < <(find . -iname '*.mp3' -print0) perhaps there is another shell out there that implements something that can replace that loop that bash can crib ? -mike
signature.asc
Description: This is a digitally signed message part.