shell script to find a file in a directory code example Example: bash find file in directory $ ls -R | grep -i "pattern"