This is an old revision of the document!
Table of Contents
ed
ED, the classic text editor, is now available included in version 0.7.1 and above.
Commands
q, Q
- Requires version 0.7.1 and above
: q
The q command quits the program. If you have unsaved work you must save it before quitting with q.
: Q
The Q command insta-quits. You will lose any unsaved work.
a
- Requires version 0.7.2 and above
: a
This command appends to the document or the line.
: a hello world this is line two testing ed .
This will allow you to type text into the file.
current line no: the = command
The = command shows you what line number you're on. This is the line you will append to if you type a (append).
l, n, p
- Requires version 0.7.2 and above
: l
This command print the current line with all non-printable characters shown as an escape code.
: n
This command prints the current line with line numbers in front for easy reference.
: p
This simply prints the current line's text as-is in human-readable format.
#l, #n, #p
- Requires version 0.7.2 and above
: 1l
This command prints the first line with all non-printable characters shown as an escape code.
: 2n
This command prints the second line with a line number in front for easy reference.
: 3p
This simply prints line 3 in normal, human-readable format.
#,#n, #,#bl, #,#p
- Requires version 0.7.2 and above
: 1,3l
This command prints lines 1 to 3 with all non-printable characters shown as an escape code.
: 2,5n
This command prints the second line through to the fifth line with line numbers in front for easy reference.
: 3,1p
This is the same as 1,3p – print the lines from 1 to 3.
: 1,$p
$ means the last line, so 1,$p prints the entire document.
