Category:Ed: Difference between revisions

From Rosetta Code
Content added Content deleted
(Remove the out file in CLI example—not always relevant.)
(Remove the note on GNU-specificity of H command---not specific to GNU)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>


Or, more portably, with Basic Regular Expressions on BSD, Mac, and [[GNU Ed]].
There's a convention of starting every (GNU 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.
<syntaxhighlight lang="bash">
cat script.ed | ed -s file.in
</syntaxhighlight>

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

This page is a stub. It needs more information! You can help Rosetta Code by filling it in!
Language
Ed
This programming language may be used to instruct a computer to perform a task.
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Ed.

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

Pages in category "Ed"

The following 68 pages are in this category, out of 68 total.

A