pnu-basename

return filename or directory portion of pathname


Keywords
pnu-project, command-line-tool, learning-python, learning-unix, python, shell, tools, unix, unix-command, utilities
License
BSD-1-Clause
Install
pip install pnu-basename==1.2.1

Documentation

Installation

pip install pnu-basename

BASENAME(1), DIRNAME(1)

This repository includes 2 Unix commands in 1:

  • basename(1) - return filename or directory portion of pathname
  • dirname(1) - return directory portion of pathname