[HPADM] Re: Number of lines to be removed

From: MuthuKumar (kmuthukumar@lycos.co.uk)
Date: Wed Dec 01 2004 - 03:45:55 EST


>
> Item : Number 1
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxxx
> Item : Number 2
> xxxxxxxxxxxxxx
> xxxxxxxxxxxxxx

Yes. You can do this with as,

    awk '/^Item :/ { print $0 }' <filename>

    sed '/^Item :/!d' <filename>

Best Regards
Muthu

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:44 EDT