Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ basename(1) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1sh)



BASENAME(1)             COMMAND REFERENCE             BASENAME(1)



NAME
     basename - strip filename affixes

SYNOPSIS
     basename string [ suffix ]

DESCRIPTION
     Basename deletes any prefix ending in a slash (/) and the
     suffix, if present, in string (from string) and prints the
     result on the standard output.  It is normally used inside
     substitution marks (` `) in shell procedures.

EXAMPLES
     This example compiles the named file and moves the output to
     cat in the current directory:

          cc /usr/src/cmd/cat.c
          mv a.out `basename /usr/src/cmd/cat.c .c`

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

SEE ALSO
     sh(1sh).




























Printed 5/12/88                                                 1





































































%%index%%
na:336,85;
sy:421,226;
de:647,481;
ex:1128,282;
rv:1410,271;
se:1681,128;
%%index%%000000000107

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026