GNU coreutils
18 June 2002
manpages-ja
Japanese version of the manual pages (for users)
man-pages-ja
Japanese man (manual) pages from the Japanese Manual Project
coreutils
The basic file, shell and text manipulation utilities of the GNU operating system
coreutils-common
coreutils common optional components
coreutils-doc
Documentation for the GNU Core Utilities
名前
dirname - ファイル名の最後の要素を削除する
書式
dirname [OPTION] NAME...
説明
NAME の最後の / (スラッシュ) 以降の要素 (/ を含む) を削除して表示します。 NAME に / が含まれない場合は、(カレントディレクトリを意味する) ’.’ を表示します。
-z, --zero | 出力行の区切りとして改行文字ではなく NUL を使用する |
--help | この使い方を表示して終了する |
--version | |
バージョン情報を表示して終了する |
例
dirname /usr/bin/ | |
-> "/usr" | |
dirname dir1/str dir2/str | |
-> "dir1" の後に "dir2" | |
dirname stdio.h | |
-> "." |
作者
作者 David MacKenzie および Jim Meyering。
著作権
Copyright © 2016 Free Software Foundation, Inc. ライセンス GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
関連項目
basename(1), readlink(1)
を使用すると完全なマニュアルを読むことができるはずだ。
dirname の完全なマニュアルは Texinfo マニュアルとして整備されている。もし、 info および dirname のプログラムが正しくインストールされているならば、コマンド
info dirname |