I am working on an open-source project which requires me to use the linux "find" command. Currently I have a directory, which contains files *.iso, *.iso.tags and *iso.keys, *.mp3, *.mp3.tags, *.mp3.keys
I can find all files with
> find ./
I can find all files EXCEPT for *..tags with
> find ./ -maxdepth=1 -not -name \'*.tags\'
what I need to do is only return everything except *.keys and *.tags. (so the return may contain, for example: this.iso, that.mp3. But it will not return, for example: this.iso.keys, this.mp3.tags
How do I go about this?
thanks
Start Free Trial