Re: Help with sorting another file


Subject: Re: Help with sorting another file
From: Arthur Corliss (acorliss@nevaeh-linux.org)
Date: Wed Feb 25 2004 - 10:56:15 AKST


On Wed, 25 Feb 2004 jonr@destar.net wrote:
>
> Can one of you throw me another script that would parse the test between
> the first < > and if it doesn't have a stop to delete that entire entry
> from <programme start="........> to and including </programme>?
>
> I have been studying Arthurs sed and awk statements and am begining to
> understand it but nowhere near able to do this.

cat $file | sed -n '/^<programme start=.*stop=.*/,/<\/programme>/p' > \
  ${file}.new

        --Arthur Corliss
          Bolverk's Lair -- http://arthur.corlissfamily.org/
          Digital Mages -- http://www.digitalmages.com/
          "Live Free or Die, the Only Way to Live" -- NH State Motto
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Feb 25 2004 - 10:56:48 AKST