Category:Ed: Difference between revisions
Add a more portable example of CLI invokation. |
Remove the note on GNU-specificity of H command---not specific to GNU |
||
Line 18: | Line 18: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
There's a convention of starting every |
There's a convention of starting every ed script with capital H on a line of its own, to toggle more verbose error messages on. And optionally end the script with capital Q to force-quit without saving the changes to file. |
||
Also see [[Tasks not implemented in Ed]] |
Also see [[Tasks not implemented in Ed]] |
Latest revision as of 07:08, 4 July 2024
![Language](http://static.miraheze.org/rosettacodewiki/thumb/2/27/Rcode-button-language-crushed.png/64px-Rcode-button-language-crushed.png)
This programming language may be used to instruct a computer to perform a task.
See Also: |
|
---|
This is the command language used by wp:ed_(software), the line oriented text editor.
Implementations are GNU Ed, Plan 9 Ed, BSD ed, and original UNIX ed. Ed is also a precursor to a whole family of other text editors and command languages. Including Sed, ex, vi, vim, sam, and others.
Ed scripts are usually ran as (on the example of GNU Ed)
cat script.ed | ed -lEGs file.in
Or, more portably, with Basic Regular Expressions on BSD, Mac, and GNU Ed.
cat script.ed | ed -s file.in
There's a convention of starting every ed script with capital H on a line of its own, to toggle more verbose error messages on. And optionally end the script with capital Q to force-quit without saving the changes to file.
Also see Tasks not implemented in Ed
Subcategories
This category has only the following subcategory.
@
Pages in category "Ed"
The following 90 pages are in this category, out of 90 total.
B
C
- Camel case and snake case
- Check input device is a terminal
- Check output device is a terminal
- Chinese zodiac
- Cistercian numerals
- Code Golf: Code Golf
- Comma quibbling
- Comments
- Conditional structures
- Conjugate a Latin verb
- Copy a string
- Count how many vowels and consonants occur in a string
- Count occurrences of a substring
- Create a file
- CSV to HTML translation
D
F
N
Q
R
S
- Sanitize user input
- Selectively replace multiple instances of a character within a string
- Shift list elements to left by 3
- Sort an integer array
- Split a character string based on change of character
- Start from a main routine
- String case
- String comparison
- String concatenation
- String interpolation (included)
- String length
- String matching
- String prepend
- Strip a set of characters from a string
- Strip comments from a string
- Strip control codes and extended characters from a string
- Strip whitespace from a string/Top and tail
- Substring
- Substring/Top and tail
- Syntax highlighting using Mediawiki formatting