Files
oldlinux-files/Minix/1.7.5/MANUALS/CAT0/BASENAME
2024-02-19 00:21:39 -05:00

66 lines
684 B
Plaintext

Command: basename - strip off file prefixes and suffixes
Syntax: basename file [suffix]
Flags: (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
The initial directory names (if any) are removed 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. This program is primarily
used in shell scripts.