basename.1 (a866e170777b42fd7921eadd6e7e664f3a031d60) | basename.1 (6c7216df785592bb069469113f556dfd1946ed5d) |
---|---|
1.\" Copyright (c) 1990, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 78 unchanged lines hidden (view full) --- 87.Nm dirname 88utility deletes the filename portion, beginning 89with the last slash 90.Ql \&/ 91character to the end of 92.Ar string 93(after first stripping trailing slashes), 94and writes the result to the standard output. | 1.\" Copyright (c) 1990, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 78 unchanged lines hidden (view full) --- 87.Nm dirname 88utility deletes the filename portion, beginning 89with the last slash 90.Ql \&/ 91character to the end of 92.Ar string 93(after first stripping trailing slashes), 94and writes the result to the standard output. |
95.Sh EXIT STATUS 96.Ex -std basename dirname |
|
95.Sh EXAMPLES 96The following line sets the shell variable 97.Ev FOO 98to 99.Pa /usr/bin . 100.Pp 101.Dl FOO=`dirname /usr/bin/trail` | 97.Sh EXAMPLES 98The following line sets the shell variable 99.Ev FOO 100to 101.Pa /usr/bin . 102.Pp 103.Dl FOO=`dirname /usr/bin/trail` |
102.Sh EXIT STATUS 103.Ex -std basename dirname | |
104.Sh SEE ALSO 105.Xr csh 1 , 106.Xr sh 1 107.Sh STANDARDS 108The 109.Nm 110and 111.Nm dirname 112utilities are expected to be 113.St -p1003.2 114compatible. | 104.Sh SEE ALSO 105.Xr csh 1 , 106.Xr sh 1 107.Sh STANDARDS 108The 109.Nm 110and 111.Nm dirname 112utilities are expected to be 113.St -p1003.2 114compatible. |