Re: Search of Text
From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 12/21/04
- Previous message: Green, Simon: "Re: IBM hardware"
- Maybe in reply to: Akash Jain: "Search of Text"
- Next in thread: Akash Jain: "Re: Search of Text"
- Reply: Akash Jain: "Re: Search of Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Green, Simon: "Re: IBM hardware"
- Maybe in reply to: Akash Jain: "Search of Text"
- Next in thread: Akash Jain: "Re: Search of Text"
- Reply: Akash Jain: "Re: Search of Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|