*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> dirname (1)              
Title
Content
Arch
Section
 

DIRNAME(1)

Contents


NAME    [Toc]    [Back]

     dirname - return directory portion of pathname

SYNOPSIS    [Toc]    [Back]

     dirname pathname

DESCRIPTION    [Toc]    [Back]

     dirname deletes the filename  portion,  beginning  with  the
last slash (`/')
     character  to  the end of pathname, and writes the result to
the standard
     output.

     The dirname utility exits 0 on success or >0 if an error occurred.

EXAMPLES    [Toc]    [Back]

     The following line sets the shell variable FOO to /usr/bin:

           FOO=`dirname /usr/bin/tail`

SEE ALSO    [Toc]    [Back]

      
      
     basename(1), csh(1), sh(1), dirname(3)

STANDARDS    [Toc]    [Back]

     The   dirname  utility  conforms  to  IEEE  Std  1003.2-1992
(``POSIX.2'').

OpenBSD     3.6                          April      18,      1994
[ Back ]
 Similar pages
Name OS Title
basename FreeBSD return filename or directory portion of pathname
dirname FreeBSD return filename or directory portion of pathname
dirname_r Tru64 Return the base filename or directory portion of a pathname
dirname Tru64 Return the base filename or directory portion of a pathname
basename Tru64 Return the base filename or directory portion of a pathname
dirname OpenBSD extract the directory portion of a pathname
basename OpenBSD return filename portion of pathname
basename OpenBSD extract the base portion of a pathname
basename FreeBSD extract the base portion of a pathname
basename Tru64 Returns the base file name or directory portion of a path name
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service