Manipulate Paths and Filenames
Bash, Linux, Sysadmin
BASH scripts often require manipulation of the pathname of files/directories.
Get Any Path in a Filename
You may need access to the target file’s parent directory, or you may need the file/directory name seperated from it’s path.
Strip Trailing Slash
comments powered by Disqus