Re: Search of Text

From: Akash Jain (akashj_at_IBILTTECHNOLOGIES.COM)
Date: 12/21/04

  • Next message: JOSEPH KREMBLAS: "Re: IBM hardware"
    Date:         Tue, 21 Dec 2004 17:46:07 +0530
    To: aix-l@Princeton.EDU
    
    

    See I want to extract average field (date by date) along with numeric values
    from all month log files generated and kept in directory. The values
    extracted will be used to generate graph.

    Regards
    Akash Jain

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
    Green, Simon
    Sent: Tuesday, 21 December 2004 5:23 PM
    To: aix-l@Princeton.EDU
    Subject: Re: Search of Text

    Can you give more information? What directory, and what log files?
    What are you searching for?

    Identifying the particular files is likely to be the biggest problem if they
    don't have a particular naming convention.

    To search all text files you might use the "file" command to identify
    whether they're simple ASCII files, or executables or whatever. Bear in
    mind that sometimes a log file may show up as "Commands" or something like
    that.

    --
    Simon Green
    Altria ITSC Europe Ltd
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Akash Jain
    Sent: 21 December 2004 09:24
    To: aix-l@Princeton.EDU
    Subject: Search of Text
    Hi Experts,
    I need to perform a search and output the result in another file with the
    following conditions:
    1. Performed on log files (NOT based on the file extension).
    2. The text files must be automatically identified.
    3. To be recursively performed on all files within a directory.
    4. Output a report in another text file
    5. Need to extract some numeric values on the basis of search string
    Please provide me the script or command to perform the desired action.
    I suppose the combination of find and grep should do the requisite.
    

  • Next message: JOSEPH KREMBLAS: "Re: IBM hardware"

    Relevant Pages

    • Re: extract certain values from file with re
      ... Can you safely assume that the lines you want to extract all contain ... Or, in Python: ... I would like to remove certain lines from a log files. ... them to a file and finally use gnuplot for plotting them. ...
      (comp.lang.python)
    • Re: MyLOG ready for test, an offline oracle log miner for 10g version.
      ... I am trying to write an offline oracle log miner, which can extract ... the redo sql from oracle online log files or archived log files, ...
      (comp.databases.oracle.server)
    • Re: Parse log files for data
      ... > I have a bunch of custom log files with database queries in them, ... > would like to extract all the insert and update queries so I can ... > * Open, in order, all log files named yyyymmdd.log in the current ...
      (comp.lang.perl.misc)
    • Re: SBS Client Application Launcher ERROR Message - Manual Test Results
      ... I ran the command line as you suggested via cut and paste to ... No new log files created on WKS. ... Do diags on WKS NIC and Server NIC ... Are you having any issues with the network ...
      (microsoft.public.windows.server.sbs)
    • Re: 54 GB in /var/log!!
      ... from command line, cut down your large log files by locating them... ... I also get an error message saying "missing argument to -exec" ...
      (Fedora)