From 987152a7d7d6409ad9e643208c64d9ea3fadb5d5 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 30 Jan 2015 22:07:17 +0100 Subject: [PATCH] cp.1: convert to mandoc, add mv(1) to SEE ALSO --- cp.1 | 66 +++++++++++++++++++++++++++++++----------------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/cp.1 b/cp.1 index 95f39c3..b2fe2d0 100644 --- 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