Thanks for the help so far folks, definitely pushing me along, though some more questions.
In the sample above from @dpowers1 I see:
setting "csg_subname"="{following text of first "-" of (computer name as lowercase}" on {now} for client
Is that missing a closing paren along the way??
Next, to throw a little more fuel on the fire here, things are a bit more muddled than I would like…
Some of the computer names that I would be looking for look a bit more like this:
AA-nnnAnnnnnnnA
The character in the 7th position may change depending on what a computer is used for, as it seems the character in the final alpha position may also be used.
basically, I’ve got a mix of characters in that position including “C” or “G” or others. I may be able to look for the lasts “C” or the lasts “G”, etc. to find what I want, but then again if that same character is at the end of the computer name, fail.
(I really wish that a standard naming convention for these devices had been used, as is now demanded/required to be used, but these systems predate me, so no such luxury)
I’ve got other systems that use another naming convention that is like this:
AA-GRPnnnnnnnA
Those seem pretty consistent and I may be able to look for the last “P” (for that sample) to find the group of digits that I’m looking for (though I can treat the digits as a string) In some cases, I’m seeing systems where there are not digits there though, rather the name was just continued as a standard english word… so something like this:
AA-GRPNAMEHERE
I’d want to exclude those if possible, though I can handle that separately by selecting target computers if necessary…
Thankfully this is mostly a one-time exercise, though it offers an opportunity to learn here and figure out how to best do this if I had to do something similar in the future.