Working on my thesis and my refernces are divided by different projects but I was easily able to to merge my files using bibtool
and bibtex-tidy
.
I started downloading all my bibtex files from https://app.bibguru.com and installed bibtool:
sudo pacman -S bibtool
yay -S bibtex-tidy
I used these commands to merge the bibtext
file while removing duplicates.