From owner-man-jp@jp.freebsd.org  Sun May 24 19:12:48 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) id TAA05857;
	Sun, 24 May 1998 19:12:48 +0900 (JST)
	(envelope-from owner-man-jp@jp.FreeBSD.org)
Received: from kiri.toba-cmt.ac.jp (kiri.toba-cmt.ac.jp [202.26.248.91])
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) with ESMTP id TAA05852
	for <man-jp@jp.freebsd.org>; Sun, 24 May 1998 19:12:47 +0900 (JST)
	(envelope-from kiri@kiri.toba-cmt.ac.jp)
Received: from localhost (localhost.toba-cmt.ac.jp [127.0.0.1])
	by kiri.toba-cmt.ac.jp (8.8.8/8.8.8) with ESMTP id TAA08470
	for <man-jp@jp.freebsd.org>; Sun, 24 May 1998 19:15:45 +0900 (JST)
	(envelope-from kiri@kiri.toba-cmt.ac.jp)
To: man-jp@jp.freebsd.org
X-Mailer: Mew version 1.92.4 on XEmacs 20.4 (Emerald)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19980524191539D.kiri@kiri.toba-cmt.ac.jp>
Date: Sun, 24 May 1998 19:15:39 +0900
From: KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
X-Dispatcher: imput version 971024
Lines: 38
Reply-To: man-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: man-jp 945
Subject: [man-jp 945] Strip line in tar?
Errors-To: owner-man-jp@jp.freebsd.org
Sender: owner-man-jp@jp.freebsd.org

$B6M;3(B $B$G$9!#(B

$B!t(B $B<+J,$NJ,$d$i$J$$$GB>$N$H$3$m$P$+$j5$$K$J$C$F$^$9!#$G$b%\%A%\%A$d$C$F(B
$B!t(B $B$^$9$N$G(B...$B!#(B

tar $B$J$s$G$9$,!"(B

$BK.Lu!'(B
     $B%7%'%k$,%+%l%s%H%G%#%l%/%H%jFb$N%U%!%$%kL>$KE83+$7$J$$$h$&!"%Q%?!<%s$r(B
     $B%/%)!<%H$7$J$1$l$P$J$i$J$$$3$H$KCm0U$7$F$/$@$5$$!#(B($BEvA3!"%7%'%k$O%"!<%+%$(B
     $B%VFb$N%U%!%$%k0lMw$K%"%/%;%9$9$k$3$H$O$G$-$^$;$s!#(B)
     tar cf - -C srcdir . | tar xpf - -C destdir

     $B%G%#%9%1%C%H$K!"(Bgzip $B$r;H$C$?05=L%"!<%+%$%V$r:n@.$9$k$K$O!"<!$N$h$&$J%3%^(B
     $B%s%I%i%$%s$r;H$&$H$$$$$G$7$g$&!#(B

$B86J8!'(B
     Note that the pattern must be quoted to prevent the shell from attempting
     to expand it according the files in the current working directory (the
     shell does not have access to the list of files in the archive, of
     course).

     To move file hierarchies, use a command line like this:

     tar -cf - -C srcdir . | tar xpf - -C destdir

     To create a compressed archive on diskette, using gzip, use a command-
     line like

$B$H$$$&$3$H$G(B "To move file hierarchies, use a command line like this:" $B$N(B
$B0l9TLuH4$1$7$F$^$;$s!)(B $B$H$j$"$($:(B 

$B!V%U%!%$%k$r3,AX9=B$$4$H0\F0$5$;$k$K$O!"0J2<$N$h$&$J%3%^%s%I%i%$%s$G9T$J(B
$B$$$^$9!'!W(B $B$F$J$H$3$G$9$+(B...$B!#(B

---
KIRIYAMA Kazuhiko
kiri@kiri.toba-cmt.ac.jp
