Blame
Date:
Sun Jan 29 05:00:28 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
03
2023-01-22
jrmu
author=mkf
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1624864985
07
2023-01-22
jrmu
host=198.251.81.133
08
2023-01-22
jrmu
name=Openbsd.Ed
09
2023-01-22
jrmu
rev=8
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=ed is a simple text editor, which can be used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0aNote that most of content of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, with help of @artsi0m on telegram. but this document won't explain ed commands and features completely, please read that.%0a%0aed has two modes, first one is command mode, which is default mode when you open ed, second one is input mode, which is used for adding text into your file like any other editor.%0a%0a! input mode%0aas mentioned before, input mode is where you change the text directly using stdin of your terminal.%0abelow, are few examples of commands can used to start input mode:%0a%0a|| border=1%0a|| a || append text the end of file ||%0a|| i || insert text to current line ||%0a|| c || change and replace current line ||%0a%0anote that you can exit input mode and switching back to command mode using a single dot (.) on a blank line and length of file will shown afterwards. for example:%0a[@%0a$ ed file%0ai%0aHello, world.%0a.%0a14%0a@]%0a%0a%0a! basic examples%0aopening a file:%0a%0a[@%0a$ ed file%0a@]%0a%0ausing a custom prompt:%0a[@%0a$ ed -p '~' file%0a@]%0a%0ausing ed without noise, suitable for usage on scripts:%0a[@%0a$ ed -s file%0a@]%0a%0a! basic ed commands%0a%0anote that you can combine some (if not all?) commands, like wq for writing and quitting.%0a%0a|| border=1%0a|| a || append, for adding text into the end of your file (or buffer). ||%0a|| e || opens first argument as file to edit (!command is accepted). cleans buffer before doing this. if there is no argument, uses default file name (see f). ||%0a|| E || like e, but won't show warnings about unwritten changes ||%0a|| f || sets default filename (see f) ||%0a|| H || prints error explanation for next errors ||%0a|| h || prints error explanation for the last error ||%0a|| n || same as p, but shows with line numbers. ||%0a|| p || means print, to show the file you are editing. ||%0a|| P || toggles prompt, enabled only when you've used -p while executing ed || %0a|| Q || like q, but won't show you a warning about unsaved stuff ||%0a|| q || quits ed ||%0a|| u || undo, only saves last thing (this includes undo too, of course) ||%0a|| r || read from file (or !command), can take a address. (like 9r will open 9th line) ||%0a|| w || writes buffer into file ||%0a|| = || works like wc -l ||%0a|| any number || switches to that line, for example 9 will switch to 9th line of file ( or buffer?) ||%0a%0a! advanced ed commands%0a|| border=1%0a|| m,nd || deletes mth line until nth line in buffer ||%0a|| m,nG/re/ || finds and moves on lines which include regular expression re from mth line, until nth line ||%0a|| m,nj || joins all lines from mth line to nth line ||%0a|| m.ng/re/command || finds all lines containing re regular expression and executes (ed) command on them. ||%0a|| s/re/replacements || replaces all all "re"'s with replacements ||%0a|| m.nV/re/ || like G, but reverse (all lines that does not contain re) ||%0a%0a! ed symbols%0a|| border=1%0a|| , or %25 || all lines from first line until current line ||%0a|| ?? || repeats last search done by ?re? ||%0a|| ?re? || previous line containing regular expression re ||%0a|| -n or ^n || nth previous line ||%0a|| - or ^ || previous line ||%0a|| n || nthn line in buffer ||%0a|| . || current line ||%0a|| $ || last line in buffer ||%0a|| +n || n line upper ||%0a|| /re/ || next line containing regular expression re ||%0a|| // || repeats last search done by /re/ ||%0a|| + || one line upper ||%0a|| %25 || file name ||%0a|| 'lc || shows (book?)marked line in buffer (see k command) ||%0a%0a%0a
12
2023-01-22
jrmu
time=1624896250
13
2023-01-22
jrmu
author:1624896250=mkf
14
2023-01-22
jrmu
diff:1624896250:1624892920:=2,3c2,3%0a%3c Note that most of content of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, with help of @artsi0m on telegram. but this document won't explain ed commands and features completely, please read that.%0a%3c %0a---%0a> Note that most of content of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, but this document won't explain ed commands and features completely, please read that.%0a> %0a74d73%0a%3c || border=1%0a88,90c87%0a%3c || 'lc || shows (book?)marked line in buffer (see k command) ||%0a%3c %0a%3c %0a---%0a> || 'lc || shows (book?)marked line in buffer (see k command) ||%0a\ No newline at end of file%0a
15
2023-01-22
jrmu
host:1624896250=198.251.81.133
16
2023-01-22
jrmu
author:1624892920=mkf
17
2023-01-22
jrmu
csum:1624892920=grammer
18
2023-01-22
jrmu
diff:1624892920:1624868632:minor=2,3c2,3%0a%3c Note that most of content of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, but this document won't explain ed commands and features completely, please read that.%0a%3c %0a---%0a> note that most of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, but this document won't explain ed commands and features completely, please read that.%0a> %0a15c15%0a%3c note that you can exit input mode and switching back to command mode using a single dot (.) on a blank line and length of file will shown afterwards. for example:%0a---%0a> note that you can exit input mode and switching back to command mode using a single dot (.) on a blank line and length of file shown afterwards. for example:%0a
19
2023-01-22
jrmu
host:1624892920=198.251.81.133
20
2023-01-22
jrmu
author:1624868632=mkf
21
2023-01-22
jrmu
diff:1624868632:1624867071:=15c15%0a%3c note that you can exit input mode and switching back to command mode using a single dot (.) on a blank line and length of file shown afterwards. for example:%0a---%0a> note that you can exit input mode and switching back to command mode using a single dot (.) on a line and length of file shown afterwards. for example:%0a
22
2023-01-22
jrmu
host:1624868632=198.251.81.133
23
2023-01-22
jrmu
author:1624867071=mkf
24
2023-01-22
jrmu
csum:1624867071=%25
25
2023-01-22
jrmu
diff:1624867071:1624866826:minor=86d85%0a%3c || %25 || file name ||%0a
26
2023-01-22
jrmu
host:1624867071=198.251.81.133
27
2023-01-22
jrmu
author:1624866826=mkf
28
2023-01-22
jrmu
diff:1624866826:1624865735:=1c1%0a%3c ed is a simple text editor, which can be used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0a---%0a> ed is a simple text editor, which can used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0a
29
2023-01-22
jrmu
host:1624866826=198.251.81.133
30
2023-01-22
jrmu
author:1624865735=mkf
31
2023-01-22
jrmu
diff:1624865735:1624865581:=23a24,25%0a> some characters has special meaning on ed, for example.%0a> . (dot) means current line, or -n means nth previous line.%0a
32
2023-01-22
jrmu
host:1624865735=198.251.81.133
33
2023-01-22
jrmu
author:1624865581=mkf
34
2023-01-22
jrmu
diff:1624865581:1624864985:minor=1c1%0a%3c ed is a simple text editor, which can used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0a---%0a> ed is a simple editor, which can used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0a
35
2023-01-22
jrmu
host:1624865581=198.251.81.133
36
2023-01-22
jrmu
author:1624864985=mkf
37
2023-01-22
jrmu
csum:1624864985=Hello!
38
2023-01-22
jrmu
diff:1624864985:1624864985:=1,88d0%0a%3c ed is a simple editor, which can used where usage of a terminal is not supported, or visual editors (such as vi) are not available.%0a%3c note that most of this page has taken from [[https://man.openbsd.org/ed|ed(1)]] man page, but this document won't explain ed commands and features completely, please read that.%0a%3c %0a%3c ed has two modes, first one is command mode, which is default mode when you open ed, second one is input mode, which is used for adding text into your file like any other editor.%0a%3c %0a%3c ! input mode%0a%3c as mentioned before, input mode is where you change the text directly using stdin of your terminal.%0a%3c below, are few examples of commands can used to start input mode:%0a%3c %0a%3c || border=1%0a%3c || a || append text the end of file ||%0a%3c || i || insert text to current line ||%0a%3c || c || change and replace current line ||%0a%3c %0a%3c note that you can exit input mode and switching back to command mode using a single dot (.) on a line and length of file shown afterwards. for example:%0a%3c [@%0a%3c $ ed file%0a%3c i%0a%3c Hello, world.%0a%3c .%0a%3c 14%0a%3c @]%0a%3c %0a%3c some characters has special meaning on ed, for example.%0a%3c . (dot) means current line, or -n means nth previous line.%0a%3c %0a%3c ! basic examples%0a%3c opening a file:%0a%3c %0a%3c [@%0a%3c $ ed file%0a%3c @]%0a%3c %0a%3c using a custom prompt:%0a%3c [@%0a%3c $ ed -p '~' file%0a%3c @]%0a%3c %0a%3c using ed without noise, suitable for usage on scripts:%0a%3c [@%0a%3c $ ed -s file%0a%3c @]%0a%3c %0a%3c ! basic ed commands%0a%3c %0a%3c note that you can combine some (if not all?) commands, like wq for writing and quitting.%0a%3c %0a%3c || border=1%0a%3c || a || append, for adding text into the end of your file (or buffer). ||%0a%3c || e || opens first argument as file to edit (!command is accepted). cleans buffer before doing this. if there is no argument, uses default file name (see f). ||%0a%3c || E || like e, but won't show warnings about unwritten changes ||%0a%3c || f || sets default filename (see f) ||%0a%3c || H || prints error explanation for next errors ||%0a%3c || h || prints error explanation for the last error ||%0a%3c || n || same as p, but shows with line numbers. ||%0a%3c || p || means print, to show the file you are editing. ||%0a%3c || P || toggles prompt, enabled only when you've used -p while executing ed || %0a%3c || Q || like q, but won't show you a warning about unsaved stuff ||%0a%3c || q || quits ed ||%0a%3c || u || undo, only saves last thing (this includes undo too, of course) ||%0a%3c || r || read from file (or !command), can take a address. (like 9r will open 9th line) ||%0a%3c || w || writes buffer into file ||%0a%3c || = || works like wc -l ||%0a%3c || any number || switches to that line, for example 9 will switch to 9th line of file ( or buffer?) ||%0a%3c %0a%3c ! advanced ed commands%0a%3c || border=1%0a%3c || m,nd || deletes mth line until nth line in buffer ||%0a%3c || m,nG/re/ || finds and moves on lines which include regular expression re from mth line, until nth line ||%0a%3c || m,nj || joins all lines from mth line to nth line ||%0a%3c || m.ng/re/command || finds all lines containing re regular expression and executes (ed) command on them. ||%0a%3c || s/re/replacements || replaces all all "re"'s with replacements ||%0a%3c || m.nV/re/ || like G, but reverse (all lines that does not contain re) ||%0a%3c %0a%3c ! ed symbols%0a%3c || , or %25 || all lines from first line until current line ||%0a%3c || ?? || repeats last search done by ?re? ||%0a%3c || ?re? || previous line containing regular expression re ||%0a%3c || -n or ^n || nth previous line ||%0a%3c || - or ^ || previous line ||%0a%3c || n || nthn line in buffer ||%0a%3c || . || current line ||%0a%3c || $ || last line in buffer ||%0a%3c || +n || n line upper ||%0a%3c || /re/ || next line containing regular expression re ||%0a%3c || // || repeats last search done by /re/ ||%0a%3c || + || one line upper ||%0a%3c || 'lc || shows (book?)marked line in buffer (see k command) ||%0a\ No newline at end of file%0a
39
2023-01-22
jrmu
host:1624864985=198.251.81.133
IRCNow