Dirname

Dirname

dirname is a standard UNIX computer program, when dirname is given a pathname, it will delete any suffix beginning with the last slash ('/') character and return the result. dirname is described in the Single UNIX Specification and is primarily used in shell scripts.

Usage

The Single UNIX Specification specification for dirname is. dirname string

:string::A pathname

Example

$ dirname /usr/home/carpetsmoker/dirname.wiki /usr/home/carpetsmoker

See also

* List of Unix utilities
* basename

External links

*


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • dirname — is a standard UNIX computer program. When dirname is given a pathname, it will delete any suffix beginning with the last slash ( / ) character and return the result. dirname is described in the Single UNIX Specification and is primarily used in… …   Wikipedia

  • Dirname — программа UNIX‐подобных ОС, предназначенная для преобразования абсолютного или относительного пути к файлу или директории в имя родительской директории. Содержание 1 Параметры 2 Примеры использования 3 …   Википедия

  • dirname — программа UNIX‐подобных ОС, предназначенная для преобразования абсолютного или относительного пути к файлу или директории в имя родительской директории. Содержание 1 Параметры 2 Примеры использования …   Википедия

  • Dirname — Saltar a navegación, búsqueda dirname es una instrucción de unix. Espera que su primer argumento sea el nombre de un fichero del sistema operativo compuesto por una serie de directorios seguidos del nombre del fichero, separados por / como es… …   Wikipedia Español

  • Dirname — ist ein Unix Programm und ein Teil des POSIX Standards.[1] Es gibt von einem Dateipfad das Verzeichnis aus. Inhaltsverzeichnis 1 Anwendungsbeispiele 2 Siehe auch 3 Einzelnachweise 4 Weblinks …   Deutsch Wikipedia

  • dirname — ist ein Unix Programm und ein Teil des POSIX Standards.[1] Es gibt von einem Dateipfad das Verzeichnis aus. Inhaltsverzeichnis 1 Anwendungsbeispiele 2 Siehe auch 3 Einzelnachweise …   Deutsch Wikipedia

  • Dirname — es una instrucción de unix. Espera que su primer argumento sea el nombre de un fichero del sistema operativo compuesto por una serie de directorios seguidos del nombre del fichero, separados por / como es habitual. dirname muestra por la salida… …   Enciclopedia Universal

  • dirent.h — C POSIX library assert.h complex.h ctype.h dirent.h dlfcn.h errno.h …   Wikipedia

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • GNU Coreutils — GNU Core Utilities Тип Miscellaneous Utilities Разработчик GNU Project Написана на C Операционная система Unix подобные ОС Последняя версия 8.20 (23 октября 2012) …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”