.\" 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