Here's a little puzzle for you. Can you figure out the purpose of this one-off shell script I just wrote?
If you post an answer put it behind a CW so you don't spoil it for others!
#programming #scripting #shellScript #shellScripting #Linux
@jik
I don't know the netpbm tools, but it looks like you have a collection of images where each one is of two pages, and you're splitting them into the individual pages. The backat variable makes me think that what you have are the unbound folio pages, where the originals are page 1 next to page N, and on the back of that, page 2 next to page N-1, etc. That's all I'm going to guess at with a few minutes of looking at it.
@kink Exactly right! I explain more here in response to another correct response: https://federate.social/@jik/116110346043545248
@jik I’m old and haven’t written code for a living in quite a while, so kinda chuffed that I sorted that out, tbqh. Thanks for providing that moment.