This commit is contained in:
Sergey Poznyakoff
2006-06-07 14:57:29 +00:00
parent 8b2f4ad670
commit 6e2760f7d7
2 changed files with 10 additions and 4 deletions

View File

@@ -2,7 +2,11 @@
* src/transform.c (transform_name_fp): Run fun even if
_transform_name_to_obstack returns false.
(_transform_name_to_obstack,set_transform_expr): Implement GNU
extension case conversion operations.
* doc/tar.texi (transform): Document the option.
(transform):
2006-06-02 Sergey Poznyakoff <gray@gnu.org.ua>

View File

@@ -6932,10 +6932,6 @@ 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}.
Notice, however, that the following @command{sed}-specific escapes
are not supported in @var{replace}: @samp{\L}, @samp{\l}, @samp{\U},
@samp{\u}, @samp{\E}.
The supported @var{flags} are:
@table @samp
@@ -6999,6 +6995,12 @@ $ @kbd{tar --transform='s,/*[^/]*/[^/]*/,,' -x arch.tar}
$ @kbd{tar --transform 's,^,/prefix/,' -x arch.tar}
@end smallexample
@item Convert each file name to lower case:
@smallexample
$ @kbd{tar --transform 's/.*/\L&/' -x arch.tar}
@end smallexample
@end enumerate
Unlike @option{--strip-components}, @option{--transform} can be used