I've done this for formatting Markdown for an Anki import tool before. If the content isn't too sensitive, it's a great first-pass general text manipulation tool (rather than having to think about how to do it with sed/grep/awk).
Of course, if those are the right tools, GPT's also pretty good at running up a first draft of the script...