Bash Script to index files in folder and search