Exclude specific filename from shell globbing
Posted
by Alsciende
on Stack Overflow
See other posts from Stack Overflow
or by Alsciende
Published on 2010-04-15T08:57:39Z
Indexed on
2010/04/15
9:03 UTC
Read the original article
Hit count: 190
shell
Hi, I want to excluse a specific filename (say, fubar.log
) from a shell (bash) globbing string, *.log
. Nothing of what I tried seems to work, because globbing doesn't use the standard RE set.
Test case : the directory contains
fubar.log
fubaz.log
barbaz.log
text.txt
and only fubaz.log barbaz.log
must be expanded by the glob.
© Stack Overflow or respective owner