I have the following bash script
for dir in ~/home/directory/ do for file in "$dir"/* do if [ ${file: -3}==".fa" ]