X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.texi;h=29fe5aab785dd7f4e152ac13b2061f24e04b91c0;hb=e496c1b52955887eb0a7544eb621e896c989c6ac;hp=1eb2fc2d1b671200677290c89c5f6039f0a0dfd6;hpb=c0e0d06e692c95b11c64f35552445b2629553cfb;p=chaz%2Ftar diff --git a/doc/tar.texi b/doc/tar.texi index 1eb2fc2..29fe5aa 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -35,7 +35,7 @@ This manual is for @acronym{GNU} @command{tar} (version from archives. Copyright @copyright{} 1992, 1994, 1995, 1996, 1997, 1999, 2000, 2001, -2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. @quotation Permission is granted to copy, distribute and/or modify this document @@ -1765,6 +1765,7 @@ use @w{@kbd{tar --list --verbose}} to list them correctly. @node going further @section Going Further Ahead in this Manual +@UNREVISED @FIXME{need to write up a node here about the things that are going to be in the rest of the manual.} @@ -3440,7 +3441,7 @@ successfully. For example, @w{@samp{tar --version}} might print: @smallexample tar (GNU tar) @value{VERSION} -Copyright (C) 2006 Free Software Foundation, Inc. +Copyright (C) 2008 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. @@ -7565,6 +7566,9 @@ replacement for each file name part that matches @var{regexp}. Both @var{regexp} and @var{replace} are described in detail in @ref{The "s" Command, The "s" Command, The `s' Command, sed, GNU sed}. +As in @command{sed}, you can give several replace expressions, +separated by a semicolon. + Supported @var{flags} are: @table @samp @@ -7658,6 +7662,18 @@ If both @option{--strip-components} and @option{--transform} are used together, then @option{--transform} is applied first, and the required number of components is then stripped from its result. +You can use as many @option{--transform} options in a single command +line as you want. The specified expressions will then be applied in +order of their appearance. For example, the following two invocations +are equivalent: + +@smallexample +$ @kbd{tar -cf arch.tar --transform='s,/usr/var,/var/' \ + --transform='s,/usr/local,/usr/,'} +$ @kbd{tar -cf arch.tar \ + --transform='s,/usr/var,/var/;s,/usr/local,/usr/,'} +@end smallexample + @node after @section Operating Only on New Files @UNREVISED @@ -8213,7 +8229,7 @@ Creating a compressed archive is simple: you just specify a commands. The compression option is @option{-z} (@option{--gzip}) to create a @command{gzip} compressed archive, @option{-j} (@option{--bzip2}) to create a @command{bzip2} compressed archive, -@command{lzma} to create an @asis{LZMA} compressed archive and +@option{--lzma} to create an @asis{LZMA} compressed archive and @option{-Z} (@option{--compress}) to use @command{compress} program. For example: