Команда dirname

Deliver portions of path names.

Синтаксис

basename string [ suffix ]

stringCommand line or file information.
suffixString with no special significance attached to any of the characters it contains

* The command basename is generally used inside substitution marks ('') within shell procedures

Примеры

basename $HOME/personal/mail - would return the basename of mail.

Обратно к списку команд