Gentoo Archives: gentoo-dev

From: Chris Gianelloni <wolf31o2@g.o>
To: Alec Berryman <alec@×××××××××.org>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Proposal: re-organizing our source mirrors into two categories: full and partial
Date: Sun, 27 Jul 2003 01:26:17
Message-Id: 1059269146.24877.41.camel@vertigo
In Reply to: Re: [gentoo-dev] Proposal: re-organizing our source mirrors into two categories: full and partial by Alec Berryman
1 I'm no bash expert, but does anyone know what one would need to do to
2 make this into a script?
3
4 On Sat, 2003-07-26 at 09:42, Alec Berryman wrote:
5 > This bash one-liner was posted to the forums; I can't find it now, so
6 > apologies to the original author:
7 >
8 > bash <(comm -23 <(find /usr/portage/distfiles/ -maxdepth 1 -type f -printf %f\\n | sort) <(find /usr/portage/ /usr/local/portage/ -path '*/*/files/digest-*' -print0 | xargs -0 awk '{print $3}' | sort -u) | sed -e 's|^|rm -i /usr/portage/distfiles/|')
9 --
10 Chris Gianelloni
11 Developer, Gentoo Linux
12
13
14 --
15 gentoo-dev@g.o mailing list