Exclude a file from bash script

Answer is here.