find -exec sd before after \; echo "sample with /path/" | sed -E 's|.*(/.*/)|\1|g'
The search/replace separator doesn't have to be '/'.I can't see myself using this for a performance bump given that I already know vi, thus sed expressions.
sed ':a;N;$!ba;s/\n/,/g'
Nobody does that with sed, when there are way simpler alternatives, like paste and tr.
jiehong•5mo ago
[0]: https://fishshell.com/docs/current/cmds/string.html