3 ms·
I'd have suggested to make this more challenging and only use POSIX sed, but -y is not part of POSIX cal anyway
by otherflavors 5y ago
I'd have suggested to make this more challenging and only use POSIX sed, but -y is not part of POSIX cal anyway
- jolmg 5y agoAnother way to make it more challenging would be to do everything in a single `sed` call. Maybe it's for that kind of script that features like `D`'s and `P`'s "up to the first newline" detail become useful.