4 ms·“s '1,$ s/foo/bar/' file.txt”. should be replacement from 1 to end, not 5 to end (#4 on your list)by neeeeees 5y ago“s '1,$ s/foo/bar/' file.txt”. should be replacement from 1 to end, not 5 to end (#4 on your list)jachee 5y agoI just submitted a PR to fix that. :)jachee 5y ago…and I closed it as a dupe already. I was seconds slower than the other contributor. :)