get file's directory bash code example Example: bash find file in directory $ ls -R | grep -i "pattern"