rob, Why yes, I did get Chat GPT to write a bash script for me.
Needed checking and verifying as it kept “forgetting” that I have a BSD-flavoured *nix but was quicker than writing from scratch.
Next time I’ll use Copilot to see if that’s better at it.