[HPADM] Scripting Question

From: Scott Linden (sdlinden_at_bluebunny.com)
Date: 07/01/03

  • Next message: Scott Linden: "[HPADM] SUMMARY: Scripting Question"
    Date: Tue, 1 Jul 2003 11:27:12 -0500
    To: <hpux-admin@dutchworks.nl>
    
    

    I am trying to write a script that will take output from a command or
    parse a file to get certain information from within the output or file.

    The output or file has a lot of unnecessary information and I either
    need to read in the data starting at a certain line number and ending at
    a certain line number or start when a line matches a given string and
    ends when it matches another given string.

    What is the best way to do this? Please send examples.

    Thanks

    Scott

    --
                 ---> 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: Scott Linden: "[HPADM] SUMMARY: Scripting Question"

    Relevant Pages

    • Re: Regexes on the command line
      ... When the java command inside the script executes it reanalyzes the command string and since the single quotes are gone it misinterprets the special characters. ...
      (comp.lang.java.programmer)
    • Re: Creation of DSN
      ... Build a text string from the input data. ... rather execute the string that was just built. ... script file has been processed. ... > I'm using directly a Command, ...
      (microsoft.public.vb.database.ado)
    • Re: Regexp vs string match
      ... power of the regexp command on my example. ... On my simple example, the "string matching"-based script ... set username ...
      (comp.lang.tcl)
    • Re: Regexes on the command line
      ... When the java command inside the script executes it reanalyzes the ... any expansion of anything inside the string. ...
      (comp.lang.java.programmer)
    • Re: Command from vb script fails due to command having Speech "charact
      ... Actually, if the command is: ... All embedded quotes (quotes in the string) must be doubled, ... single quote in vbscript. ... script due to a speech character in the command. ...
      (microsoft.public.scripting.vbscript)