This is a discussion on tar.1 patch within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Hi, - Most -s patterns will include / for pathnames, so to make the manpage easier to parse by ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, - Most -s patterns will include / for pathnames, so to make the manpage easier to parse by humans change the example delimitor to `|' instead of `/' - Add a complex practical example of the -s feature. Index: tar.1 ================================================== ================= RCS file: /cvs/src/bin/pax/tar.1,v retrieving revision 1.47 diff -u -p -r1.47 tar.1 --- tar.1 24 May 2005 16:33:45 -0000 1.47 +++ tar.1 30 Jan 2006 08:31:20 -0000 @@ -207,7 +207,7 @@ specified. .Pp The format of these regular expressions is .Pp -.Dl /old/new/[gp] +.Dl |old|new|[gp] .Pp As in .Xr ed 1 , @@ -228,7 +228,7 @@ The string may also contain newline characters. Any non-null character can be used as a delimiter .Po -.Ql / +.Ql | is shown here .Pc . Multiple @@ -324,6 +324,18 @@ from a compressed archive named Note that the glob pattern has been quoted to avoid expansion by the shell: .Pp .Dl $ tar tvzf backup.tar.gz '*.jpeg' +.Pp +Verbosely list, but do not extract, the compressed archive +.Pa mutt.tar.gz , +prepend all filenames in +.Pa /etc , +but not the files in +.Pa /etc/systrace , +with +.Pa var/package/rejected/ +.Pp +.Dl $ tar -s '|^etc/systrace.*|&|' \e +.Dl -s '|^etc.*|var/package/rejected/&|' -tzf mutt.tar.gz .Pp For more detailed examples, see .Xr pax 1 . # Han |