# Mass edit journal entries based on a filter

**URL:** <https://forum.plaintextaccounting.org/t/mass-edit-journal-entries-based-on-a-filter/82>\
**Category:** Reddit\
**Created:** [March 9, 2024, 12:59am UTC](https://forum.plaintextaccounting.org/t/mass-edit-journal-entries-based-on-a-filter/82 "2024-03-09T00:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redditbot](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.plaintextaccounting.org/redditbot/32/42_2.png) [@redditbot](https://forum.plaintextaccounting.org/u/redditbot)\
**Post date:** [March 9, 2024, 12:59am UTC](https://forum.plaintextaccounting.org/t/mass-edit-journal-entries-based-on-a-filter/82/1 "2024-03-09T00:59:38Z")

</div>

Just starting to get into PTA and so far very happy with it. I imported a few years of my bank statements, added a few rules in for hledger to generate some nice journals that balance well but of course I still ended up with a bunch of `expense:unknown` entries that I'm cleaning up manually.

 

Is there an existing tool that will allow me to set the second account of an entry for all entries that match a given filter (payee, description, etc). It's not hard to do but I'm sure I must exist already and I'm just missing it.

 

Thanks!

 
 submitted by [/u/ternagen](https://www.reddit.com/user/ternagen)   
 [[link]](https://www.reddit.com/r/plaintextaccounting/comments/1auyf0k/mass_edit_journal_entries_based_on_a_filter/)[[comments]](https://www.reddit.com/r/plaintextaccounting/comments/1auyf0k/mass_edit_journal_entries_based_on_a_filter/)
* * *
This is a companion discussion topic for the original entry at [https://www.reddit.com/r/plaintextaccounting/comments/1auyf0k/mass\_edit\_journal\_entries\_based\_on\_a\_filter/](https://www.reddit.com/r/plaintextaccounting/comments/1auyf0k/mass_edit_journal_entries_based_on_a_filter/)
