Re:Sed challenge: join cal -y months into a single column
by otherflavors on Wednesday November 17, 2021 @04:23PM
(#29259007)
I'd have suggested to make this more challenging and only use POSIX sed, but -y is not part of POSIX cal anyway
[ Parent
| on HN ]
Re:Sed challenge: join cal -y months into a single column
by jolmg on Wednesday November 17, 2021 @04:31PM
(#29259084)
Another 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.