Thanks for the feedback!
I updated my UUID formatting to the below

; UUID:YYYYMMDD:<account>:<amount>
where
    > account primarily indicates a credit card account to which the bill
was paid
    > amount being absolute value - while parsing checking account, amount
is typically positive
      indicating a debit from the checking account paid towards the credit
card account and
      while parsing the credit card statement, the amount is negative
implying a credit into this
      account.

The above format can help me sort transactions by date and uniqifies more
than 1 transaction
from the same day - (of course there are cases of duplicate UUID if even
the amount paid is the
same on two or more transactions made on the same day but ignoring it for
now.. )

And then as Martin suggested, I am using a shell command to parse out these
UUIDs

> awk 'BEGIN { FS = "; UUID:" }; {print /$2}' | sort | uniq -c | grep -v -G
'^\s\+\?\(1\|2\)\s'


- Ghanashyam

On Wed, 15 Jul 2020 at 03:25, Martin Michlmayr <[email protected]> wrote:

> * [email protected] <[email protected]>
> [2020-07-14 10:42]:
> > I'd like to therefore double check at any time, I had same UUID used
> > more than twice. Does ledger allow for reporting transactions based
> > on UUID filtering?
>
> How about some shell commands?
>
> grep "; *UUID:" *.ledger | sort | uniq -c | sed -e "s/^ *//" | cut -d" "
> -f1 | grep -v "^\(1\|2\)$"
>
> --
> Martin Michlmayr
> https://www.cyrius.com/
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ledger-cli/20200715102548.GD7200%40jirafa.cyrius.com
> .
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAMKU22GouaW0vQJbFT_9178cmqTtoW-_i0B0OyK7B9NbdvfUCQ%40mail.gmail.com.

Reply via email to