List files that don't match a string in bash
Posted
by Javier
on Stack Overflow
See other posts from Stack Overflow
or by Javier
Published on 2010-04-23T10:36:08Z
Indexed on
2010/04/23
10:43 UTC
Read the original article
Hit count: 218
bash
|directory-listing
Dear all,
I'm a newbie in bash and I would like to pass as parameter to a python function all files in a directory that don't match a given pattern. sth. like:
$myscripts/myprog.py $myfiles/!(bonjovi)
The above example should retrieve all files that don't match to "bonjovi".
Best wishes
© Stack Overflow or respective owner