I'm running in CentOS Linux, but this is a core unix question:
> ls */a/b/*.*
list hundreds of files with several extensions and I'd like not to lists those with extension ".o", say. So, after checking the man page for ls, I tried
> ls -I "*.o" */a/b/*.*
and
> ls --ignore="*.o" */a/b/*.*
but both still got me the *.o files.
Why weren't they ignored as expected? Shouldn't 'ls -I="*.o"' make ls skip all files that end in '.o' ?
I even tried
> ls --ignore="*/a/b/*.o" */a/b/*.*
but same results: the .o files were listed -uff!