[GNC] Global replacement of the name of Payee (Description)
Kalpesh Patel
kalpesh.patel at usa.net
Sun Apr 20 10:32:57 EDT 2025
If you have perl installed, which is the case if you are fetching online prices, and if it is saved as a XML formatted one then you can use Perl one liner as follows in a command line:
#perl -pi -e 's/Tata Steel/Tata Steel Inc./g' <full_path_to_gnucash_file_dir_and_name>
This is likely to be far safer than actually editing it in a text editor. You may have to adjust single quote to double quote if on Windows OS. This is known as perl pie ... in case if there is any interest on quick RFM:
http://technosophos.com/2009/05/21/perl-pie-if-you-only-learn-how-do-one-thing-perl-it.html
-----Original Message-----
From: flywire <flywire0 at gmail.com>
Sent: Sunday, April 20, 2025 6:13 AM
To: Shashi Gupta <mfskanpur at gmail.com>
Cc: Gnucash Users <gnucash-user at gnucash.org>
Subject: [GNC] Global replacement of the name of Payee (Description)
Open xlm file in a text file editor and do a search and replace all.
Regards
More information about the gnucash-user
mailing list