home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!nwnexus!Celestial.COM!ray
- From: ray@Celestial.COM (Ray Jones)
- Subject: Re: Command to parse text...
- Organization: Celestial Software, Mercer Island, WA
- Date: Fri, 11 Dec 1992 19:45:27 GMT
- Message-ID: <1992Dec11.194527.7959@Celestial.COM>
- References: <lux.723676699@sol.UVic.CA>
- Lines: 22
-
- In <lux.723676699@sol.UVic.CA> 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.
-
- > Can you help me? Sed and regular expressions are still quite a
- >mystery to me...!
-
- There is a specific command to do exactly what you want in most instances.
- The command is:
- basename
- --
- INTERNET: ray@Celestial.COM Ray A. Jones; Celestial Software
- UUCP: ...!thebes!camco!ray 6641 East Mercer Way
- uunet!camco!ray Mercer Island, WA 98040; (206) 947-5591
- The probability of one or more spelling errors in this missive approaches
-