From owner-freebsd-questions Mon Dec 10 9:47:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mcqueen.wolfsburg.de (pns.wobline.de [212.68.68.5]) by hub.freebsd.org (Postfix) with ESMTP id BAEED37B417 for ; Mon, 10 Dec 2001 09:47:27 -0800 (PST) Received: from colt.ncptiddische.net (ppp-306.wobline.de [212.68.71.27]) by mcqueen.wolfsburg.de (8.11.3/8.11.3/tw-20010821) with ESMTP id fBAHlOA09817; Mon, 10 Dec 2001 18:47:24 +0100 Received: from tisys.org (jodie.ncptiddische.net [192.168.0.2]) by colt.ncptiddische.net (8.11.6/8.11.6) with ESMTP id fBAHmZ001036; Mon, 10 Dec 2001 18:48:35 +0100 (CET) (envelope-from nils@tisys.org) Received: (from nils@localhost) by tisys.org (8.11.6/8.11.6) id fBAHlmO00874; Mon, 10 Dec 2001 18:47:48 +0100 (CET) (envelope-from nils) Date: Mon, 10 Dec 2001 18:47:48 +0100 From: Nils Holland To: Magnus B{ckstr|m Cc: freebsd-questions@freebsd.org Subject: Re: Understaning the files in /stand (a little long, sorry) Message-ID: <20011210184748.A787@tisys.org> Mail-Followup-To: Magnus B{ckstr|m , freebsd-questions@freebsd.org References: <20011210174815.B1975@tisys.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from b@etek.chalmers.se on Mon, Dec 10, 2001 at 06:11:12PM +0100 X-Operating-System: FreeBSD jodie.ncptiddische.net 4.4-STABLE FreeBSD 4.4-STABLE X-Machine-Uptime: 6:41PM up 2:12, 1 user, load averages: 0.00, 0.00, 0.00 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 10, 2001 at 06:11:12PM +0100, Magnus B{ckstr|m stood up and spoke: > cd /stand > ls -l | grep 1759284 | grep -v fsck | \ > awk '{print "./" $9}' | xargs -n1 ln -f fsck > > (This lists all the files, greps out those that should be hard-linked > together, removes one of them (fsck) from the list, then has xargs invoke > ln -f to hard-link each of them to fsck. Simple as that:)) Thanks! That did it! For the next time, I'll remember that it's not always a good idea to copy while filesystems with cp -r ;-) Greetings Nils -- Nils Holland Ti Systems - FreeBSD in Tiddische, Germany http://www.tisys.org * nils@tisys.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message