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: 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)
    • Re: 54 GB in /var/log!!
      ... from command line, cut down your large log files by locating them... ... and I think my monitor newer than any computer ...
      (Fedora)
    • 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: 54 GB in /var/log!! -- UPDATE
      ... from command line, cut down your large log files by locating them... ... Proofreading for the third time, I discovered a missing space; ...
      (Fedora)