Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ basename(1) — UTek W2.3

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 10/17/86                                                1





































































%%index%%
na:72,69;
sy:141,162;
de:303,405;
ex:708,273;
rv:981,227;
se:1208,97;
%%index%%000000000103

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