Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 18:16, 29 June 2024
, 7 days agoAdd ed example
(Add Uiua) |
(Add ed example) |
||
Line 1,319:
→ "Sh ws soul strppr. Sh took my hrt!"
</syntaxhighlight>
=={{header|ed}}==
Have to edit the list of chars in the code, but otherwise working.
<syntaxhighlight lang="sed">
H
g/.*/s/[aei]//g
,p
Q
</syntaxhighlight>
{{out}}
<pre>$ cat strip-chars.ed | ed -lEGs strip-chars.input
Newline appended
Sh ws soul strppr. Sh took my hrt!</pre>
=={{header|Elena}}==
|