[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] Pathname expansion without word splitting
From: |
Sebastian Unger |
Subject: |
[Help-bash] Pathname expansion without word splitting |
Date: |
Thu, 17 Sep 2015 12:41:45 +1200 |
Hi There,
I have tried to work this out by myself, but despite many years experience
writing bash scripts I was stumped a bit by this one:
Given an array of pathname patterns, create a new array with all matching
file names (and only those) without running an external command. Be aware
that the pathname patterns may contain blanks (otherwise it would be too
simple ;-).
Extra points if done without a loop. ;-)
Please include me in a reply as I'm not subscribed to the list.
Cheers,
--
*Sebastian Unger*
*Senior Software Engineer*
Tait Communications
Email: address@hidden <address@hidden>
www.taitradio.com
--
------------------------------
This email, including any attachments, is only for the intended recipient.
It is subject to copyright, is confidential and may be the subject of legal
or other privilege, none of which is waived or lost by reason of this
transmission.
If you are not an intended recipient, you may not use, disseminate,
distribute or reproduce such email, any attachments, or any part thereof.
If you have received a message in error, please notify the sender
immediately and erase all copies of the message and any attachments.
Unfortunately, we cannot warrant that the email has not been altered or
corrupted during transmission nor can we guarantee that any email or any
attachments are free from computer viruses or other conditions which may
damage or interfere with recipient data, hardware or software. The
recipient relies upon its own procedures and assumes all risk of use and of
opening any attachments.
------------------------------
- [Help-bash] Pathname expansion without word splitting,
Sebastian Unger <=