Update
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
10
doc/tar.texi
10
doc/tar.texi
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user