basename man page on Minix

Man page or keyword search:  
man Server   6208 pages
apropos Keyword Search (all sections)
Output format
Minix logo
[printable version]

BASENAME(1)							   BASENAME(1)

NAME
       basename, dirname - strip off file prefixes and suffixes

SYNOPSIS
       basename file [suffix]
       dirname file

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.

								   BASENAME(1)
[top]

List of man pages available for Minix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net