diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-07-05 22:06:34 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-07-05 22:06:34 +0000 |
commit | 54280023d3ea9ff052710b207f8d10ae1f0d3759 (patch) | |
tree | de88b5ce7a3de1394e9a76e3a2bfd37aa1d635bb /usr.bin/dirname/dirname.1 | |
parent | 3f2942150c24b6d7c270e2afea6c6073d95aae93 (diff) |
Move manpage to appropriate directory
Diffstat (limited to 'usr.bin/dirname/dirname.1')
-rw-r--r-- | usr.bin/dirname/dirname.1 | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/usr.bin/dirname/dirname.1 b/usr.bin/dirname/dirname.1 new file mode 100644 index 00000000000..bfa4ff2281a --- /dev/null +++ b/usr.bin/dirname/dirname.1 @@ -0,0 +1,77 @@ +.\" $OpenBSD: dirname.1,v 1.1 2001/07/05 22:06:25 pjanzen Exp $ +.\" +.\" Copyright (c) 1990, 1993, 1994 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" the Institute of Electrical and Electronics Engineers, Inc. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)dirname.1 8.2 (Berkeley) 4/18/94 +.\" +.Dd April 18, 1994 +.Dt DIRNAME 1 +.Os +.Sh NAME +.Nm dirname +.Nd return directory portion of pathname +.Sh SYNOPSIS +.Nm dirname +.Ar string +.Sh DESCRIPTION +.Nm +deletes the filename portion, beginning +with the last slash +.Pq Sq \&/ +character to the end of +.Ar string , +and writes the result to the standard output. +.Pp +The +.Nm +utility +exits 0 on success or >0 if an error occurred. +.Sh EXAMPLES +The following line sets the shell variable +.Ev FOO +to +.Pa /usr/bin : +.Pp +.Dl FOO=`dirname /usr/bin/tail` +.Sh SEE ALSO +.Xr basename 1 , +.Xr csh 1 , +.Xr sh 1 , +.Xr dirname 3 +.Sh STANDARDS +The +.Nm +utility conforms to +.St -p1003.2-92 . |