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

📄 basename.1

📁 操作系统设计与实现源码
💻 1
字号:


BASENAME(1)               Minix Programmer's Manual                BASENAME(1)


NAME
     basename, dirname - strip off file prefixes and suffixes

SYNOPSIS
     basename file [suffix]
     dirname file

OPTIONS
     (none)

EXAMPLES

     basename /user/ast/file.c
                         # Strips path to yield file.c

     basename /user/file.c .c
                         # Strips path and .c to yield file

     dirname /user/file.c
                         # Strips basename to yield /user

DESCRIPTION

     Basename removes the initial directory names (if any) yielding  the  name
     of  the  file itself.  If a second argument is present, it is interpreted
     as a suffix and is also stripped, if present.

     Dirname removes the final component of a path, yielding the  directory  a
     file is in.

     These programs are primarily used in shell scripts.





















                                                                             1

⌨️ 快捷键说明

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