Auto-incrementing version letters

Posted by Bob_Mesibov on Mar 2, 2022 10:24 PM EDT
BASHing data; By Bob Mesibov
Mail this story
Print this story

I have several scripts that auto-increment a number in a data table. That's not hard to do on the command line. But what if I wanted to have version letters at the end of mixed letter-number codes, like 101a, 101b, 101c etc? And also wanted to increment version numbers after a letter cycle, like 101c, 101d, 102a, 102b...? As is usually the case with command-line operations, there's more than one way to do it. This post looks at a couple of solutions to this particular problem, namely incrementing (single) version letters and version numbers on a fixed letter cycle.

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.