From owner-freebsd-questions@FreeBSD.ORG Sat Jun 5 16:47:12 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B58D2106566C for ; Sat, 5 Jun 2010 16:47:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 725848FC22 for ; Sat, 5 Jun 2010 16:47:12 +0000 (UTC) Received: from r55.edvax.de (port-92-195-108-152.dynamic.qsc.de [92.195.108.152]) by mx01.qsc.de (Postfix) with ESMTP id D480C3DDC9; Sat, 5 Jun 2010 18:47:04 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o55Gl1cb002066; Sat, 5 Jun 2010 18:47:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 5 Jun 2010 18:47:01 +0200 From: Polytropon To: "illoai@gmail.com" Message-Id: <20100605184701.e8367487.freebsd@edvax.de> In-Reply-To: References: <4C070621.5060109@comclark.com> <20100603134212.f1b9b1c0.freebsd@edvax.de> <20100603151125.GA44719@libertas.local.camdensoftware.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "questions@freebsd.org" Subject: Re: .sh & tar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2010 16:47:12 -0000 On Sat, 5 Jun 2010 12:27:09 -0400, "illoai@gmail.com" wr= ote: > On 3 June 2010 11:11, Chip Camden wrote: > > On Jun 03 2010 10:03, illoai@gmail.com wrote: > >> On 3 June 2010 07:42, Polytropon wrote: > >> > Depends on WHAT you want to stop - the illness or just its symptoms.= :-) > >> > > >> > If it's just about symptoms, redirect the error messages into > >> > nirvana. > >> > > >> > =A0 =A0 =A0 =A0tar [opts] [file] 1>/dev/null 2>&1 > >> > > >> > If you want to remove the REASON for "tar: Removing leading '/' > >> > from member names", you need to re-create the archives and > >> > start archiving from a relative point (instead of from an > >> > absolute one), e. g. > >> > > >> > =A0 =A0 =A0 =A0# cd / > >> > =A0 =A0 =A0 =A0# tar cvf etc.tar etc/ > >> > > >> > (lazy man's method) instead of > >> > > >> > =A0 =A0 =A0 =A0# tar cvf etc.tar /etc/ > >> > > >> > The extraction of the archive will usually start in the > >> > current directory, so > >> > > >> > =A0 =A0 =A0 =A0# cd /usr/local/bin > >> > =A0 =A0 =A0 =A0# tar xvf etc.tar > >> > > >> > won't give you an etc/ subtree in /usr/local/bin directory. > >> > > >> > >> tar -cvf - ./ -C / > /dev/null > >> ? > >> > > I can't help wondering why the 'v' option is being specified, unless > > /dev/null needs more playing time. >=20 > Reflex, but you're right, it shouldn't be in there. Your tenmelonhundredgigahertz plentycore machines have to process useless amounts of data to be discarded, or they wouldn't be worth their price. :-) Seriously, pure reflex. No -v needed here as you are not interested in monitoring the process. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...