From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24132 invoked by alias); 3 Jun 2013 14:00:46 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17820 Received: (qmail 22199 invoked from network); 3 Jun 2013 14:00:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at wawrzek.name does not designate permitted sender hosts) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=eaGGaTzRTvYkQoOYEmJydhFEY1reW+zBCDs3QOuOSOI=; b=NMP59EJWbW2XYOyE2/Y45KX4qBKAOA/94iN46tk5BKvy+iwoi329WUx+QtJwTMuh6H 2IVg7THJ9kiOs3YUS5OX6aWUj8F5XJ2xVUgonZvF14VTrtNg1wktdf692+bRyrsth3qd TlzRhbNmJuVq/s9rNINB9JqYBGcsBFS7e5z1+UkdPLgSGXpyoSTyb0KLTTnTQC/mLyxL CmHsNtBsyCOuKx0P4CoxeeMW8K1S92wS/QfyQwNdstaNMUx1E0nwwMt6wQLKbVC1odnn f0WRbuov9m21hEVXXlz3Xm6ETGcraCtIBAQdfL8ZoN7zRr4yVUjtatPDHxjDS9y6STSQ JGKw== X-Received: by 10.60.150.146 with SMTP id ui18mr9845562oeb.101.1370268024927; Mon, 03 Jun 2013 07:00:24 -0700 (PDT) MIME-Version: 1.0 X-Originating-IP: [62.6.159.228] From: Wawrzek Niewodniczanski Date: Mon, 3 Jun 2013 15:00:04 +0100 Message-ID: Subject: mapfile, many files and globbin To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkTORNOGpMfp51MGtmxVmVdGxE4FpqfUyl4kXk5pL/EzPk35k/arIeVebILtZxZfQSxhKO0 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=3D("${(f)mapfile[TEST/**/*list(.L+0)]}") I will be glad for any suggestions. Thanks, Wawrzek PS. Eventually, gave up using: names=3D($(cat TEST/**/*.list(.L+0))) -- Dr Wawrzyniec Niewodnicza=C5=84ski or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124