-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdesed.1
83 lines (83 loc) · 2.14 KB
/
desed.1
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.TH DESED 1 "2020-06-05" "" "User Commands"
.SH NAME
\fBdesed\fR \- TUI debugger for sed scripts
.
.SH SYNOPSIS
.SY desed
[\fIOPTIONS\fR]
.I SED_SCRIPT
.I INPUT_FILE
.YS
.
.SH DESCRIPTION
\fBdesed\fR is a command line tool with beautiful TUI that provides users
with a comfortable interface and a practical debugger,
used to step through complex sed scripts.
.
.SH OPTIONS
As \fBdesed\fR operates by running \fBsed\fR internally,
instead of connecting to a "live" instance, some of the program options are
used to control the behaviour the internal \fBsed\fR instance.
.
.SS sed options
.TP
\fB\-n\fR, \fB\-\-silent\fR, \fB\-\-quiet\fR
Suppress automatic printing of pattern space.
.TP
\fB\-E\fR, \fB\-\-regexp-extended\fR
Use extended regular expressions in the script.
.TP
.B \-\-sandbox
Operate in sandbox mode (disable \fBe\fR/\fBr\fR/\fBw\fR commands).
.TP
\fB\-z\fR, \fB\-\-null\-data\fR
Separate lines by NUL characters.
.
.SS desed options
.TP
\fB\-v\fR, \fB\-\-verbose\fR
This will enable various debug printing to stderr.
.TP
\fB\-\-sed-path\fR \fIEXECUTABLE\fR
Instead of the system-wide \fBsed\fR install, use \fIEXECUTABLE\fR instead.
.
.SH CONTROLS
.TP
\fBj\fR, \fBk\fR, \fBg, \fBG
Movement, just as in \fBvim\fR.
.TP
.B b
Toggle breakpoint.
.TP
\fBs\fR, \fBa\fR
Step forward / backwards.
.TP
.B r
Run to next breakpoint or end of script.
.TP
.B R
The same as \fBr\fR, but backwards.
.TP
.B l
Reload code and continue debugging in the same place as before.
.TP
.B q
Quit.
.PP
Similar to \fBvim\fR, most commands can be prefixed with numbers.
The mouse can also be used to scroll through the script and toggle breakpoints.
.SH BUGS
.
Report all bugs at https://github.com/SoptikHa2/desed.
I know about the bugs that happen when sed script contains newlines.
Sed parsing that causes this is currently under rewrite.
.SH AUTHOR
Petr Šťastný <[email protected]> (from 2020-04-20) and plenty of others, from
fixing typos to helping getting it to run under BSD. See repository for full list.
.
.SH SEE ALSO
sed(1)
.
.SH LICENCE
\fBdesed\fR is available under the terms of the GNU General Public License,
version 3 or any later version, as published by the Free Software Foundation.