vvv,

Eh, though you’re right, it’s a pattern I like a lot: define your “main” at the top, put all the supporting functions below, and call main at the end.

These days I’ve got a little bash task runner framework that I use for little scripts like this.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • fightinggames
  • All magazines