if I want to search those files which were suffix with .c,
I can use find ./ -name *.c
but how to find out those files which were not suffix with .c ??
Thanks a lot!
if I want to search those files which were suffix with .c,
I can use find ./ -name *.c
but how to find out those files which were not suffix with .c ??
Thanks a lot!
find ./ ! -name *.c
Quote the *. to avoid accidental mismatches.
find ./ -type f ! -name \*\.c