Category:Ed: Difference between revisions
Content deleted Content added
More details and more conventional in/out file marking |
Remove the note on GNU-specificity of H command---not specific to GNU |
||
(4 intermediate revisions by the same user not shown) | |||
Line 10:
Ed scripts are usually ran as (on the example of [[GNU Ed]])
<syntaxhighlight lang="bash">
cat script.ed | ed -
</syntaxhighlight>
Or, more portably, with Basic Regular Expressions on BSD, Mac, and [[GNU Ed]].
There's a convention of starting every 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]]
|