Calculates the parent directory of a given file or directory path. More information: https://www.gnu.org/software/coreutils/manual/html_node/dirname-invocation.html.
dirname {{path/to/file_or_directory}}
dirname {{path/to/file_a}} {{path/to/directory_b}}
xargs
):dirname --zero {{path/to/directory_a}} {{path/to/file_b}}