-
Somehow, several entries in my jrnl have been duplicated, so now there are three of each entry, all write next to each other with the same timestamp. Is there a simple way to select and delete duplicate entries via |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Although we don't have an explicit command to find dupes (maybe we should?), you can use jrnl's import command for this.
Afterward, you can diff |
Beta Was this translation helpful? Give feedback.
-
@wren alright, I'm running into weird behavior now. I... don't know when this happened, but I checked my journal and some entries were duplicated, even after I explicitly removed them using the commands I listed. Then I tried your methods, and it did remove some dupes, but the ones that were duplicated still had a single duplicated entry alongside them. This one might require some investigation on my part. |
Beta Was this translation helpful? Give feedback.
Although we don't have an explicit command to find dupes (maybe we should?), you can use jrnl's import command for this.
jrnl.txt
) to something else (likejrnl-backup.txt
or anything you want)cat jrnl-backup.txt | jrnl --import
jrnl.txt
and dedupe the entries as they're being importedAfterward, you can diff
jrnl.txt
andjrnl-backup.txt
to be sure you got what you expected.