|
| From: | Clark WANG |
| Subject: | Re: [Help-bash] Matching file pattern excluding some exceptions |
| Date: | Mon, 6 Aug 2012 09:41:53 +0800 |
Hi,
Suppose that I want match all *.cpp except main*.cpp files. Instead of
using other utilities like find or grep, is there a way to use native
bash features by extend the following code to do so?
shopt -s nullglob
set -- *.cpp
--
Regards,
Peng
| [Prev in Thread] | Current Thread | [Next in Thread] |