Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: how to list files "*.*.*"

Status
Not open for further replies.

lepap

Technical User
Joined
Feb 11, 2002
Messages
4
Location
FR
Sorry for such a newbie question :

I need to exec "find" command so that it gives me the list of files with 3 qualifiers, and only such those files:
files like "a.b.c" but not "a.b" nor "a.b.c.d".

I tried things like "*[!.]" but I can't get out...

Any solution with "ls" or a "for" loop could suit...

Thanks all, my headache is becoming quite strong...
 
The following should do it:
Code:
find ./ -name \*.\*.\* \! -name \*.\*.\*.\*
 
Thanks for velocity and solution of my poor old problem...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top