[HPADM] Scripting question.

From: Thomas Northup (thomaslnorthup_at_yahoo.com)
Date: 07/27/04

  • Next message: Balaji Nathan: "[HPADM] find command help on previous day's (yesterday's) file"
    Date: Tue, 27 Jul 2004 12:42:14 -0700 (PDT)
    To: hpux-admin@dutchworks.nl
    
    

    Scripting question.

    I want to grep a file for something and if I find it I want that line and the next 7 lines.

    How would I go about doing that?

    TIA, will summarize.

    Tom

    ____________________________________________________________________________________________
    Do you eBay (Click Here)

                    
    ---------------------------------
    Do you Yahoo!?
    New and Improved Yahoo! Mail - 100MB free storage!

    --
                 ---> 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: Balaji Nathan: "[HPADM] find command help on previous day's (yesterday's) file"

    Relevant Pages

    • [HPADM] SUMMARY Scripting question.
      ... Scripting question. ... Several people pointed out it can not be done using the grep that comes with HP-UX and that I should get GNU grep witch supports this type of function. ... I got alot of great ideas on how to do it using awk and sed. ... Do you Yahoo!? ...
      (HP-UX-Admin)
    • Re: [PATCH] add PCI ROMs to sysfs
      ... copyright statement. ... Grep for PCI_ROM_ADDRESS_ENABLE and you can see all the places where ... Do you Yahoo!? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Search for a Word in a file
      ... This one-liner works a bit like a (Unix) grep: ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (perl.beginners)
    • once more w/feeling
      ... kernel 2.4.28 boots _fine_. ... Here's the .config filtered through grep ^C: ... Do you Yahoo!? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)