⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basename.1

📁 Unix操作系统minix 2.0源码
💻 1
字号:
.TH BASENAME 1.SH NAMEbasename, dirname \- strip off file prefixes and suffixes.SH SYNOPSIS\fBbasename \fIfile\fR [\fIsuffix\fR]\fR.br\fBdirname \fIfile\fR.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS(none).SH EXAMPLES.EX "basename /user/ast/file.c" "Strips path to yield \fIfile.c\fP".EX "basename /user/file.c .c" "Strips path and \fI.c\fP to yield \fIfile\fP".EX "dirname /user/file.c" "Strips basename to yield \fI/user\fP".SH DESCRIPTION.PP.I Basenameremoves the initial directory names (if any) yielding the name of thefile itself.If a second argument is present, it is interpreted as a suffix and isalso stripped, if present..PP.I Dirnameremoves the final component of a path, yielding the directory a file is in..PPThese programs are primarily used in shell scripts.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -