#!/bin/bash bibfile="tukethesis.bib" for i in "$HOME/Downloads/*.bibtex"; do cat $i >> "$bibfile" echo >> "$bibfile" rm $i done