.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH BASENAME 1 2017年10月 "GNU coreutils 8.28" 用戶命令
.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
請向 報告 basename
的翻譯錯誤。
.SH 版權
Copyright \(co 2017 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 參見
dirname(1), readlink(1)
.PP
.br
完整文檔請見:
.br
或者在本地使用: info \(aq(coreutils) basename invocation\(aq
.SH "跋"
.br
本頁面中文版由中文 man 手冊頁計劃提供。
.br
中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR