Deleted Added
full compact
basename.1 (99137) basename.1 (131507)
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

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)basename.1 8.2 (Berkeley) 4/18/94
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

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)basename.1 8.2 (Berkeley) 4/18/94
36.\" $FreeBSD: head/usr.bin/basename/basename.1 99137 2002-06-30 13:40:35Z jmallett $
36.\" $FreeBSD: head/usr.bin/basename/basename.1 131507 2004-07-03 00:24:45Z ru $
37.\"
38.Dd April 18, 1994
39.Dt BASENAME 1
40.Os
41.Sh NAME
42.Nm basename , dirname
43.Nd return filename or directory portion of pathname
44.Sh SYNOPSIS

--- 49 unchanged lines hidden (view full) ---

94and writes the result to the standard output.
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`
37.\"
38.Dd April 18, 1994
39.Dt BASENAME 1
40.Os
41.Sh NAME
42.Nm basename , dirname
43.Nd return filename or directory portion of pathname
44.Sh SYNOPSIS

--- 49 unchanged lines hidden (view full) ---

94and writes the result to the standard output.
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`
102.Sh DIAGNOSTICS
102.Sh DIAGNOSTICS
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.
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.