Category:Ed: Difference between revisions

Content deleted Content added
Aartaka (talk | contribs)
Remove the out file in CLI example—not always relevant.
Aartaka (talk | contribs)
Add a more portable example of CLI invokation.
Line 11: Line 11:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
cat script.ed | ed -lEGs file.in
cat script.ed | ed -lEGs file.in
</syntaxhighlight>

Or, more portably, with Basic Regular Expressions on BSD, Mac, and [[GNU Ed]].
<syntaxhighlight lang="bash">
cat script.ed | ed -s file.in
</syntaxhighlight>
</syntaxhighlight>