[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

18.1 basename: Strip directory and suffix from a file name

basename removes any leading directory components from name. Synopsis:

 
basename name [suffix]

If suffix is specified and is identical to the end of name, it is removed from name as well. basename prints the result on standard output.

The only options are `--help' and `--version'. See section 2. Common options.



This document was generated by Jeff Bailey on December, 28 2002 using texi2html