version 1.3, 1999/06/05 01:21:19 |
version 1.4, 1999/07/03 02:11:08 |
|
|
.Nm dirname |
.Nm dirname |
.Ar string |
.Ar string |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm dirname |
.Nm |
deletes the filename portion, beginning |
deletes the filename portion, beginning |
with the last slash |
with the last slash |
.Pq Sq \&/ |
.Pq Sq \&/ |
|
|
.Pa /usr/bin : |
.Pa /usr/bin : |
.Pp |
.Pp |
.Dl FOO=`dirname /usr/bin/trail` |
.Dl FOO=`dirname /usr/bin/trail` |
.Pp |
|
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
The |
The |
.Nm dirname |
.Nm |
utility |
utility |
exits 0 on success or >0 if an error occurred. |
exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
|
|
.Xr sh 1 |
.Xr sh 1 |
.Sh STANDARDS |
.Sh STANDARDS |
The |
The |
.Nm dirname |
.Nm |
utility conform to |
utility conforms to |
.St -p1003.2-92 . |
.St -p1003.2-92 . |