I have a directory ./src
with files. I would like to extract all .c
files in it, except those .c
files that are in ./src/test
. I have tried variants of
find ./src -name "*.c" -and -not -name ./src/test
(inspired from here) but none have succeeded.
What am I doing wrong?