Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

mapfile, many files and globbin



Hi,

Is it possible to mix mapfile module and globbing (for file names)?

In example I have following tree structure and try to put the content
of not empty list file (ideally one per file) to an array.


TEST/1/4/A.list
aaa
bbb
ccc

TEST/2/2/B.list
ddd
eee
fff

TEST/2/3/C.list - empty


I tried various of version around following command:

names=("${(f)mapfile[TEST/**/*list(.L+0)]}")

I will be glad for any suggestions.

Thanks,
Wawrzek


PS.
Eventually, gave up using:
names=($(cat TEST/**/*.list(.L+0)))


--
Dr  Wawrzyniec Niewodniczański    or Wawrzek for short
  PhD in Quantum Chemistry  & MSc in Molecular Engineering
   WWW: http://wawrzek.name E-MAIL: jobs@xxxxxxxxxxxx
      Linux User #177124



Messages sorted by: Reverse Date, Date, Thread, Author