.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH BASENAME 1 2022年9月 "GNU coreutils 9.1" 使用者命令
.SH 名稱
basename \- 去除檔名中的目錄與字尾
.SH 概述
\fBbasename\fP \fI\,名稱 \/\fP[\fI\,字尾\/\fP]
.br
\fBbasename\fP \fI\,選項\/\fP... \fI\,名稱\/\fP...
.SH 描述
.\" Add any additional description here
.PP
列印已經移除所有目錄相關資訊後的(檔案)名稱。若特別指定,則同時移除指定的字尾名。
.PP
必選引數對長短選項同時適用。
.TP
\fB\-a\fP, \fB\-\-multiple\fP
支援多個引數,把每個引數看作一個(檔案)名稱來處理。
.TP
\fB\-s\fP, \fB\-\-suffix\fP=\fI\,字尾\/\fP
移除字尾;同時隱含 \fB\-a\fP
.TP
\fB\-z\fP, \fB\-\-zero\fP
使每行輸出以 NUL 字元結束,不新增換行符
.TP
\fB\-\-help\fP
顯示此幫助資訊並退出
.TP
\fB\-\-version\fP
顯示版本資訊並退出
.SH 範例
.TP
basename /usr/bin/sort
\-> "sort"
.TP
basename include/stdio.h .h
\-> "stdio"
.TP
basename \-s .h include/stdio.h
\-> "stdio"
.TP
basename \-a any/str1 any/str2
\-> "str1" 後接 "str2"
.SH 作者
由 David MacKenzie 編寫。
.SH 報告錯誤
GNU coreutils 的線上幫助:
.br
請向 報告翻譯錯誤。
.SH 版權
Copyright \(co 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL
version 3 or later .
.br
This is free software: you are free to change and redistribute it. There is
NO WARRANTY, to the extent permitted by law.
.SH 參見
\fBdirname\fP(1), \fBreadlink\fP(1)
.PP
.br
完整文件請見:
.br
或者在本地使用: info \(aq(coreutils) basename invocation\(aq
.SH "跋"
.br
本頁面中文版由中文 man 手冊頁計劃提供。
.br
中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR