by elcaro · 5y ago · 0 comments
say qx< cal -hy >.lines.skip.batch(9)
.map({ |([Z] .join.comb(22).batch(3)) })
.map({ |(.[2] ~ .[0].trim, |.[3 .. *]) })
.grep(*.trim.chars).join("\n")
.subst(/\s+ ^^ \s\s+ 1»/, ' 1', :g)No comments yet.