www.delorie.com/gnu/docs/textutils/coreutils_110.html   search  
 
Buy GNU books!


GNU Core-utils

[ < ] [ > ]   [ << ] [ 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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003