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 & &'
/bin/hi.c?id=53751f31fce9b0c2fc6c8bb4be9195f0ce546cf9&follow=1'>Match Sh and Ss as Tag in mdocJune McEnroe 2019-02-18Match statics and typedefs as TagJune McEnroe 2019-02-18Clean up htmlHeaderJune McEnroe 2019-02-18Remove hi line numberingJune McEnroe 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe