www.delorie.com/gnu/docs/sh-utils/sh-utils_35.html   search  
 
Buy GNU books!


GNU shell utilities

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

7.2 dirname: Strip non-directory suffix from a file name

dirname prints all but the final slash-delimited component of a string (presumably a filename). Synopsis:

 
dirname name

If name is a single component, dirname prints `.' (meaning the current directory).

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


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