BASENAME.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- 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