[HPADM] Number of lines to be removed

From: Mahendra Kumar (Mahendra.Kumar_at_dhl.com)
Date: 12/01/04

  • Next message: MuthuKumar: "[HPADM] Re: Number of lines to be removed"
    Date: Wed, 01 Dec 2004 16:33:39 +0800
    To: hpadmin <hpux-admin@DutchWorks.nl>
    
    
    

    Hi admins,

    I have a file which is having some items. Under each Item their
    descriptions are given for about 2 lines, I want to keep the first line
    of the item and delete the rest 2 lines from each item in the file, For
    example

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

    From the above I have to align the lines of item number 1 and 2 and the
    rest of the lines have to be deleted. can anyone help on this.

    TIA
    Mahendra

    
    

    --
                 ---> 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)
    

  • Next message: MuthuKumar: "[HPADM] Re: Number of lines to be removed"