I have this function in my bash script:
getlogfiles(){ for FILE in "$somedirectory/*$year-*"; do # FIles look like 2016-10-25_.....log tar