[Ilugc] reg FIND command in Unix
Venkatraman S
blizzard_venkat at yahoo.co.in
Tue Jun 27 02:55:51 IST 2006
"R.Ramkumar" <andyetitmoves at gmail.com> wrote: > 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...
Consider the following case: I have 3 directories dir1, dir2 , dir3.
Contents of dir1:
dir1file1.zip
dir1file2.zip
dir1file3.zip
Contents of dir2:
dir2file1.zip
dir2file2.zip
dir2error.log
Contents of dir3:
dir3file1.zip
Now i want the output to be the contents of dir1 and dir3 in ascending order of timestamps. since dir2 contains the log file, it should not appear the output.
--vEnnkAt
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
More information about the ilugc
mailing list