Re:Regex character "$" doesn't mean "end-of-string"
by Karellen on Friday March 22, 2024 @10:57AM
(#39791358)
It is quite nice what `sed` does. A sed search-and-replace is typically shown as `s/foo/bar/`, but you can actually use any punctuation character to separate the parts. Whatever follows the "s" will be used for that statement, so you can write `s|foo|bar|` or `s:foo:bar:`, even mixing and matching in the same script to have `s|baz|quux|; s:xyzzy:blorp:` and it will all work.
[ Parent
| on HN ]
There are no comments on this comment yet.