home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14691 < prev    next >
Encoding:
Text File  |  1992-12-15  |  805 b   |  25 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!munnari.oz.au!metro!mama!andy
  3. From: andy@research.canon.oz.au (Andy Newman)
  4. Subject: Re: Command to parse text...
  5. Message-ID: <BzA0Cr.ts@research.canon.oz.au>
  6. Sender: news@research.canon.oz.au
  7. Organization: Canon Information Systems Research Australia
  8. References: <lux.723676699@sol.UVic.CA>
  9. Date: Tue, 15 Dec 1992 01:05:15 GMT
  10. Lines: 13
  11.  
  12. lux@sol.UVic.CA (Michael O'Henly) writes:
  13. >    I need a command that will take a line of input that looks like
  14. >this...
  15. >
  16. >        /is/gd/.int_res/.text/.lib/.docs/filename
  17. >
  18. >    ...and return the string "filename". In other words, it's got to
  19. >return all the text between the last "/" and the end of the input
  20. >line.
  21.  
  22. basename /is/gd/.int_res/.text/.lib/.docs/filename
  23. -- 
  24. Andy Newman (andy@research.canon.oz.au)
  25.