[GNC] Reformat Bank Description to Capitalise Every Word

flywire flywire0 at gmail.com
Fri Sep 4 02:29:08 EDT 2020


gnu sed v4.7 on win10

sed -i.bak '/^<trn:description^>/s/\w\+/\L\u^&/g;
s/^&Amp;\^|Trn:Description/\L^&/g' filename

Delete the ^ escape characters if not on windows.

On Sat, May 9, 2020 at 6:22 AM flywire <flywire0 at gmail.com> wrote:

> My bank statements use uppercase text which is harder to read than mixed
> case. Is it possible to reformat the bank description to capitalise every
> word? It could happen as part of the import process on any field selected
> but ideally it would be nice to run on existing transactions without
> generating a changed transaction.
>
> Maybe a sed command on the xml file (?).
>


More information about the gnucash-user mailing list