On 21 May 2013 09:21, Allan McRae <[email protected]> wrote:

> allan@arya ~
> > mapfile -t srcdir_refs < <(cd "tmp" && find -type f -exec grep -Il
> "10" {} +)
>
> allan@arya ~
> > echo ${srcdir_refs[@]}
> ./out/out-7.txt ./out/out-3.txt ./out/out-2.txt ./out/out-9.txt
> ./out/out-8.txt ./out/out-5.txt ./out/out-4.txt ./out/out-1.txt
> ./out/out-6.txt
>
> allan@arya ~
> > printf "  %s\n" ${srcdir_refs[@]}
>   ./out/out-7.txt
>   ./out/out-3.txt
>   ./out/out-2.txt
>   ./out/out-9.txt
>   ./out/out-8.txt
>   ./out/out-5.txt
>   ./out/out-4.txt
>   ./out/out-1.txt
>   ./out/out-6.txt
>
>
Buggered if I know; did not work when I tested it.

Reply via email to