summary refs log tree commit diff
path: root/bin/man1/edit.1
blob: 8c94939aa5eee1744859a5ca752f2f9d62b18620 (plain) (blame)
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
.Dd August 29, 2019
.Dt EDIT 1
.Os
.
.Sh NAME
.Nm edit
.Nd interactive script
.
.Sh SYNOPSIS
.Nm
.Op Ar replacement
.
.Sh DESCRIPTION
.Nm
creates a temporary
.Xr sh 1
script
from standard input
and invokes
.Ev EDITOR
before it executes.
The
.Ar replacement
argument is used in a
.Xr sed 1
substitute expression
to generate the script.
The default
.Ar replacement
is
.Ql : & .
.
.Sh EXAMPLES
.Dl ls | edit 'mv & &'
xdump viewLars Hjemli 2009-02-12Makefile: add doc-related targetsLars Hjemli