110 pts.
 Way to filter files in IFS?
Michael recently wrote Search400.com with this question: "Every day we have hundreds of very small 1K to 100K files written to a directory (JDEB7333) on our IFS. All the files have the same extension of .log. Is there a native command or a utility (free or subscription) that you are aware of that will search the entire JDEB7333 directory for files with a .log extension for a keyword, such as "error" or "failed"?" Think you can help? Michelle Davidson Editor Search400.com mdavidson@techtarget.com

Software/Hardware used:
ASKED: August 10, 2005  9:03 AM
UPDATED: August 11, 2005  8:52 AM

Answer Wiki:
I think you can use the unix command 'grep' from the Qshell. I'm not an expert in unix-like shells, but the following commands could help you: 'STRQSH' to enter Qshell 'grep "error" /JDEB7333/*.log ' this command will display each line containing "error", and output can be redirected to a file. Regards Laurent
Last Wiki Answer Submitted:  August 11, 2005  3:43 am  by  Lbrossard   0 pts.
All Answer Wiki Contributors:  Lbrossard   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

or just to look for a string within the IFS file.
Try this in qsh.

cat *.log |grep failed

 0 pts.