20 May
2013
20 May
'13
11:38 p.m.
On 21 May 2013 09:21, Allan McRae <allan@archlinux.org> 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.