Strip last component from file name.
Synopsis
dirname NAME
Description
Print NAME with its last non-slash component and trailing slashes removed. Runs in the just-bash WASM shell inside SLICC.
Examples
$ dirname /path/to/file.txt
Prints: /path/to
See Also
basename, realpath