[Ilugc] reg FIND command in Unix

R.Ramkumar andyetitmoves at gmail.com
Tue Jun 27 15:19:20 IST 2006


> I need to fetch all the directories that contain the *.zip file but do not contain *.log file. How do i achieve this?

this should do, if I get your query right :)

find -type f -name '*.zip' -not -name '*.log' -printf '%h\n' | uniq |
whatever...

it moves on...

-- 
April 1: This is the day upon which we are reminded of
what we are on the other three hundred and sixty-four.
          -- Mark Twain, "Pudd'nhead Wilson's Calendar"


More information about the ilugc mailing list