[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] Matching file pattern excluding some exceptions
From: |
Peng Yu |
Subject: |
[Help-bash] Matching file pattern excluding some exceptions |
Date: |
Sun, 5 Aug 2012 16:52:37 -0500 |
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
- [Help-bash] Matching file pattern excluding some exceptions,
Peng Yu <=