basename.1 (156780) | basename.1 (188006) |
---|---|
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 156780 2006-03-16 17:21:52Z jkoshy $ | 36.\" $FreeBSD: head/usr.bin/basename/basename.1 188006 2009-02-02 11:19:56Z rwatson $ |
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 45.Nm 46.Ar string 47.Op Ar suffix 48.Nm 49.Op Fl a 50.Op Fl s Ar suffix 51.Ar string 52.Op Ar ... 53.Nm dirname 54.Ar string | 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 45.Nm 46.Ar string 47.Op Ar suffix 48.Nm 49.Op Fl a 50.Op Fl s Ar suffix 51.Ar string 52.Op Ar ... 53.Nm dirname 54.Ar string |
55.Op Ar ... |
|
55.Sh DESCRIPTION 56The 57.Nm 58utility deletes any prefix ending with the last slash 59.Ql \&/ 60character present in 61.Ar string 62(after first stripping trailing slashes), --- 54 unchanged lines hidden --- | 56.Sh DESCRIPTION 57The 58.Nm 59utility deletes any prefix ending with the last slash 60.Ql \&/ 61character present in 62.Ar string 63(after first stripping trailing slashes), --- 54 unchanged lines hidden --- |