Advertisement

07.08.2008 at 05:57PM PDT, ID: 23548820
[x]
Attachment Details

Linux / Unix Find problem (excluding multiple file extensions)

Asked by jondecker76 in Linux, Linux Programming

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?

thanksStart Free Trial
[+][-]07.08.2008 at 06:01PM PDT, ID: 21959761

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Programming
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.08.2008 at 07:43PM PDT, ID: 21960220

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628