Hacker News new | ask | show | jobs
by neeeeees 1680 days ago
“s '1,$ s/foo/bar/' file.txt”. should be replacement from 1 to end, not 5 to end (#4 on your list)
1 comments

I just submitted a PR to fix that. :)
…and I closed it as a dupe already. I was seconds slower than the other contributor. :)