zsh-users
 help / color / mirror / code / Atom feed
* mapfile, many files and globbin
@ 2013-06-03 14:00 Wawrzek Niewodniczanski
  2013-06-03 15:44 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Wawrzek Niewodniczanski @ 2013-06-03 14:00 UTC (permalink / raw)
  To: zsh-users

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@wawrzek.name
      Linux User #177124


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-06 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-03 14:00 mapfile, many files and globbin Wawrzek Niewodniczanski
2013-06-03 15:44 ` Bart Schaefer
2013-06-05 21:30   ` Wawrzek Niewodniczanski
2013-06-06  6:17     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).