bash script to get all files inside folder and subfolder code example Example: search all folders for file match linux find . -name "foo*"