Query: basename
OS: minix
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BASENAME(1) General Commands Manual BASENAME(1)NAMEbasename, dirname - strip off file prefixes and suffixesSYNOPSISbasename file [suffix] dirname fileOPTIONS(none)EXAMPLESbasename /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 /userDESCRIPTIONBasename removes the initial directory names (if any) yielding the name of the file itself. If a second argument is present, it is inter- preted 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. BASENAME(1)
| Related Man Pages |
|---|
| basename(1) - mojave |
| basename(3) - netbsd |
| basename(1) - osx |
| dirname(1) - osx |
| basename(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| customizing xterm windows |
| geting the real path |
| basename problem |
| getting basename inside awk script |
| Reading files of different type and same basename |