Date: Mon, 10 Dec 2001 18:11:12 +0100 (MET) From: Magnus B{ckstr|m <b@etek.chalmers.se> To: Nils Holland <nils@tisys.org> Cc: freebsd-questions@freebsd.org Subject: Re: Understaning the files in /stand (a little long, sorry) Message-ID: <Pine.OSF.4.21.0112101802230.29367-100000@downy.etek.chalmers.se> In-Reply-To: <20011210174815.B1975@tisys.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Dec 2001, Nils Holland wrote: > So, any idea how to undo this? I could probably rm -R /stand on the machine This should do the trick, but replace 1759284 by the correct size of your crunch binary: 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:)) Magnus 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?Pine.OSF.4.21.0112101802230.29367-100000>