Re: Search of Text
From: Akash Jain (akashj_at_IBILTTECHNOLOGIES.COM)
Date: 12/21/04
- Previous message: Green, Simon: "Re: [Q] does internal DDS 4 tape drive hot swapable on P660????"
- In reply to: Green, Simon: "Re: Search of Text"
- Next in thread: Green, Simon: "Re: Search of Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Green, Simon: "Re: [Q] does internal DDS 4 tape drive hot swapable on P660????"
- In reply to: Green, Simon: "Re: Search of Text"
- Next in thread: Green, Simon: "Re: Search of Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|