Re: Search of Text

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 12/21/04

  • Next message: Green, Simon: "Re: [Q] does internal DDS 4 tape drive hot swapable on P660????"
    Date:         Tue, 21 Dec 2004 12:52:41 +0100
    To: aix-l@Princeton.EDU
    
    

    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: Green, Simon: "Re: [Q] does internal DDS 4 tape drive hot swapable on P660????"

    Relevant Pages

    • 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: Full daily backup with MS backup on W2k3
      ... One more question about the LOG files. ... That line is used to refresh what Windows sees in your tape device. ... If you use the refresh command you'll need ... >> Hello Dajo, ...
      (microsoft.public.windows.server.networking)
    • Re: Strange Chars on LogParser 2.2 output - EVT --> NAT
      ... In your original post you mentioned ... always fail/produce unexpected output? ... what's the content of the .log files? ... the "postie" command doesn't exist. ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: maliscous software removal tool
      ... | I download everytime it comes out, my question is: Is there a way to check ... Maybe log files or output messages? ... Command line switches... ... /F:Y = force extended scan and automatically clean infected files ...
      (microsoft.public.windowsupdate)
    • Antwort: Re: time journey on a SP node [Virus checked]
      ... I think I want to restore the node after the test. ... Obviously you'll get some very strange log files. ... New to AIX? ... > I must test something in our application concerning system time and ...
      (AIX-L)