Date: Mon, 10 Dec 2001 18:47:48 +0100 From: Nils Holland <nils@tisys.org> To: Magnus B{ckstr|m <b@etek.chalmers.se> Cc: freebsd-questions@freebsd.org Subject: Re: Understaning the files in /stand (a little long, sorry) Message-ID: <20011210184748.A787@tisys.org> In-Reply-To: <Pine.OSF.4.21.0112101802230.29367-100000@downy.etek.chalmers.se>; from b@etek.chalmers.se on Mon, Dec 10, 2001 at 06:11:12PM %2B0100 References: <20011210174815.B1975@tisys.org> <Pine.OSF.4.21.0112101802230.29367-100000@downy.etek.chalmers.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011210184748.A787>