[GNC] Help
gnucash at 4forl1st5.slmail.me
gnucash at 4forl1st5.slmail.me
Tue Jan 9 04:41:53 EST 2024
On Tuesday, January 9th, 2024 at 04:03, Max Crystal <maxietax at roadrunner.com> wrote:
>
> Every time I open and close the register it creates a notepad log entry on
> my hard drive. Can I disable this so I will not have multiple entries every
> day.
>
> Max
Can't tell if you are using GnuCash on a UNIX-like platform. but,
if you arem then I have a couple of Makefile targets, one that lists
all of my "old files" and one that removes them all
Note also that I have files named personal-??.xac where the ?? is a
two letter country code - your filenames may differ, (indeed, I think
the dot-xac is showing my age a little?) but adapting the commands
to match your filenames shouldn't be too hard.
list-old-personal:
find . -name personal-??.xac.`date +%Y%m`\* \
-a \! -name personal-??.xac.`date +%Y%m%d`\* -print
list-old-personal-and-rm:
find . -name personal-??.xac.`date +%Y%m`\* \
-a \! -name personal-??.xac.`date +%Y%m%d`\* -print | xargs rm -f
FWIW, you can use the power of 'expr' to clear out last month's
list-last-month-personal:
l=`date +%Y%m` ; \
find . -name personal-??.xac.`expr $$l - 1`\* -print ;
list-last-month-personal-and-rm:
l=`date +%Y%m` ; \
find . -name personal-??.xac.`expr $$l - 1`\* -print | xargs rm -f ;
and even the previous year's
list-last-year-personal:
l=`date +%Y` ; \
find . -name personal-??.xac.`expr $$l - 1`\* -print
list-last-year-personal-and-rm:
l=`date +%Y` ; \
find . -name personal-??.xac.`expr $$l - 1`\* -print | xargs rm
although note that if you run these commands from the command line,
drop the $$l for $l, as the doubling is a Makefile escape.
HTH, although apologies for the noise if you are not on a UNIX-like
platform.
More information about the gnucash-user
mailing list