[Nottingham] Is everyone "sed -e 's/.../.../ ...'" only?

Andy Smith andy at bitfolk.com
Wed Aug 2 11:23:24 UTC 2017


Hello,

On Tue, Aug 01, 2017 at 03:48:22PM +0100, Martin via Nottingham wrote:
> Does anyone commonly use sed with anything other than just the "s"
> (substitute) command?

I used '/blah/d' yesterday to remove lines matching blah :)

Otherwise no I can't remember the last time I used sed without the
s// command.

tbh if it gets much more complicated than that I do it in perl.

For the relative beginner:

    https://www.youtube.com/watch?v=IGe0GnlIWq4

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



More information about the Nottingham mailing list