Haha, I feel that... My first bash script to loop over my files and use mkv or ffprobe to modify either metadata or encode my files were if statements for every file xD
It worked but was ugly as fuck, tedious and surely not efficient... I had to change each file name manually...
I keep those scripts as "things of the past" to remember myself where I come from :) I'm still chuckling seeing those horrible things, but they worked and I was happy that I did it all by my self :D.