News for hackers. Stuff that matters.
Re:Useful sed scripts and patterns by neeeeees on Thursday November 11, 2021 @11:21PM (#29196277)
“s '1,$ s/foo/bar/' file.txt”. should be replacement from 1 to end, not 5 to end (#4 on your list)
Re:Useful sed scripts and patterns by jachee on Thursday November 11, 2021 @11:26PM (#29196296)
I just submitted a PR to fix that. :)
Re:Useful sed scripts and patterns by jachee on Thursday November 11, 2021 @11:29PM (#29196311)
…and I closed it as a dupe already. I was seconds slower than the other contributor. :)