Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pixdoc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!talcott!wjh12!pixel!pixdoc!vsh From: vsh@pixdoc.UUCP (Steve Harris) Newsgroups: net.unix Subject: Re: YA{sed}{question} Message-ID: <27@pixdoc.UUCP> Date: Wed, 20-Nov-85 20:13:53 EST Article-I.D.: pixdoc.27 Posted: Wed Nov 20 20:13:53 1985 Date-Received: Sat, 23-Nov-85 01:53:13 EST References: <294@geowhiz.UUCP> Organization: Pixel Systems, Woburn, MA Lines: 17 > [input] > {garbage}#{complete garbage}#{more garbage} > .... > > [desired output] > {garbage}#{complete garbage}{more garbage} > .... try: s/#\([^#]*\)$/\1/ -- Steve Harris | {allegra|ihnp4|cbosgd|ima|genrad|amd|harvard}\ Pixel Systems Inc. | !wjh12!pixel!pixdoc!vsh 300 Wildwood Street | Woburn, MA 01801 | 617-933-7735 x2314