home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!munnari.oz.au!metro!mama!andy
- From: andy@research.canon.oz.au (Andy Newman)
- Subject: Re: Command to parse text...
- Message-ID: <BzA0Cr.ts@research.canon.oz.au>
- Sender: news@research.canon.oz.au
- Organization: Canon Information Systems Research Australia
- References: <lux.723676699@sol.UVic.CA>
- Date: Tue, 15 Dec 1992 01:05:15 GMT
- Lines: 13
-
- lux@sol.UVic.CA (Michael O'Henly) writes:
- > I need a command that will take a line of input that looks like
- >this...
- >
- > /is/gd/.int_res/.text/.lib/.docs/filename
- >
- > ...and return the string "filename". In other words, it's got to
- >return all the text between the last "/" and the end of the input
- >line.
-
- basename /is/gd/.int_res/.text/.lib/.docs/filename
- --
- Andy Newman (andy@research.canon.oz.au)
-