-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecp.1
More file actions
49 lines (41 loc) · 771 Bytes
/
ecp.1
File metadata and controls
49 lines (41 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.Dd May 11, 2017
.Dt ECP 1
.Os
.Sh NAME
.Nm ecp
.Nd extended cp
.Sh SYNOPSIS
.Nm program
.Op Fl t
.Ar from
.Ar to
.Sh DESCRIPTION
.Nm
is a simple wrapper for cp, using basic regular expressions.
It takes two arguments:
.Ar from
is an expression that determines the files that should be copied,
.Ar to
is a sed-replacement expression for the target file.
.Sh OPTIONS
.Nm program
uses following options:
.Bl -tag -width Ds
.It Fl t
Overwrite existing files. This is not default.
.El
.Sh EXAMPLES
Copy every file with the extension
.Sq .sh
to the corresponding file with the extension
.Sq .1 .
.Pp
.Dl $ ecp '\e(.*\e)\e.sh$' '\e1.1'
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr emv 1 ,
.Xr sed 1 ,
.Xr regex 7 .
.Sh AUTHORS
.An pranomostro Aq Mt pranomostro@posteo.net