sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 987152a7d7d6409ad9e643208c64d9ea3fadb5d5
parent 481ed596ffca6409c3d505893bb1b6a0e96bf088
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 30 Jan 2015 22:07:17 +0100

cp.1: convert to mandoc, add mv(1) to SEE ALSO

Diffstat:
Mcp.1 | 66++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 34 insertions(+), 32 deletions(-)

diff --git a/cp.1 b/cp.1 @@ -1,42 +1,44 @@ -.TH CP 1 sbase\-VERSION -.SH NAME -cp \- copy files and directories -.SH SYNOPSIS -.B cp -.RB [ \-Rr ] -.I file -.RI [ name ] -.P -.B cp -.RB [ \-aPpRrv ] -.RI [ file ...] -.RI [ directory ] -.SH DESCRIPTION -.B cp +.Dd January 30, 2015 +.Dt CP 1 sbase\-VERSION +.Os +.Sh NAME +.Nm cp +.Nd copy files and directories +.Sh SYNOPSIS +.Nm +.Op Fl Rr +.Ar file +.Op Ar name +.Nm +.Op Fl aPpRrv +.Op Ar file ... +.Op Ar directory +.Sh DESCRIPTION +.Nm copies a given file, naming it the given name. If multiple files are listed they will be copied into the given directory. -.SH OPTIONS -.TP -.B \-a -preserve mode, timestamp, links and permissions. -Implies \-d, \-p, \-r. -.TP -.B \-P +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl a +preserve mode, timestamp, links and permissions. Implies +.Fl d , +.Fl p +and +.Fl r . +.It Fl P don't dereference symbolic links. -.TP -.B \-p +.It Fl p preserve mode, timestamp and permissions. -.TP -.B \-f +.It Fl f if an existing destination file cannot be opened, remove it and try again. -.TP -.B \-R +.It Fl R equivalent to -r. -.TP -.B \-r +.It Fl r copies directories recursively. If this flag is not specified, directories are not copied. -.TP -.B \-v +.It Fl v print names of source and destination per file to stdout. In the format: "source \-> destination". +.El +.Sh SEE ALSO +.Xr mv 1