Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2005 19:09:42 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        Thierry Thomas <thierry@pompo.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: /usr/ports/distfiles maintenance
Message-ID:  <20050527190942.1ce1f4af.lehmann@ans-netz.de>
In-Reply-To: <20050527165436.GA58117@graf.pompo.net>
References:  <42970476.6050105@btopenworld.com> <20050527113832.GQ1175@k7.mavetju> <20050527131802.GB98382@vision.anyware> <20050527152759.0b2b0a64.lehmann@ans-netz.de> <20050527165436.GA58117@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thierry Thomas wrote:

> Le Ven 27 mai 05 =E0 15:27:59 +0200, Oliver Lehmann <lehmann@ans-netz.de>
>  =E9crivait=A0:
> > > What about:
> > >=20
> > > find . -name distinfo | xargs grep MD5 | awk '{ print $2 }' | sed -e =
's/[()]//g'
> >=20
> > find . -name distinfo -type f | xargs awk -F'[()]' '/MD5/ {print $2}'=20
>=20
> find . -name distinfo -type f -exec awk -F'[()]' '/MD5/ {print $2}' {} \;
>=20
> Next one?

yeah -exec creates more systemload then xargs. That is because -exec
starts one awk for each file it finds. Awk through xargs is called not so
often because it processes more then one file each time it gets called
(because xargs passes more then one file over to it). Thats why xargs is
in most cases cooler then -exec ;)=20

--=20
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050527190942.1ce1f4af.lehmann>