Search of Text

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

  • Next message: Green, Simon: "Re: IBM hardware"
    Date:         Tue, 21 Dec 2004 14:54:15 +0530
    To: aix-l@Princeton.EDU
    
    

    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.

    Regards
    Akash Jain


  • Next message: Green, Simon: "Re: IBM hardware"

    Relevant Pages

    • Re: grep within files older than 3 days
      ... The find command you are doing won't look at the contents of the log ... think you will need to use the grep comamnd to search within each log ... only updated with completion times when the particular program is run, ... Find all log files NOT older than 3 days ...
      (comp.unix.aix)
    • FINDSTR question
      ... Looked so far in vain for a good grep command or GUI that will do this, ... (I'm in the current directory with all the .log files I'm searching for). ... Anyone a pro at this command? ...
      (microsoft.public.windowsxp.help_and_support)
    • FINDSTR question
      ... Looked so far in vain for a good grep command or GUI that will do this, ... (I'm in the current directory with all the .log files I'm searching for). ... Anyone a pro at this command? ...
      (microsoft.public.win2000.general)
    • FINDSTR questions
      ... Looked so far in vain for a good grep command or GUI that will do this, ... (I'm in the current directory with all the .log files I'm searching for). ... Anyone a pro at this command? ...
      (microsoft.public.windowsxp.help_and_support)
    • 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)