3 ms·
I think it can be valid to do stuff with a scripting language you know, rather than shell commands (isn't that the good old Perl philosophy?). I've actually eve
by Tichy 14y ago
I think it can be valid to do stuff with a scripting language you know, rather than shell commands (isn't that the good old Perl philosophy?). I've actually even looked up sed once and did stuff with it, but it doesn't come up often enough to remember the gory details. And learning sed just to replace stuff takes too much time.
That said, the javascript solution does look a bit long winded.
Also, please don't take it as a negative comment on your comment, I actually appreciate the solutions and it makes me consider sed again.