Posted on 2024-03-01 (Last modified on 2024-04-25) fileName="my-file.yaml" find . -type f -name "$fileName" -printf "%h\n" bash scripting See also Colorize pattern on CLI Troubleshooting Intermittent DNS Resolution Issues Running Multiple Server Processes From One Script Cleanup After Script Exit Find files and folders with spaces