Unix Technical Forum

tar.1 patch

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 01:04 PM
Han Boetes
 
Posts: n/a
Default tar.1 patch

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com