For writing a unix shell script
I need to search .log files under 2 different directory exa:-/dir1/dir2/dir3 & /dir1/dir2/dir4
and find out the expected error like failed from that log files. Could you please help me how to write in shell script for above requirement |
Quote:
Code:
grep -ri 'error' dir[1-3] |
Thanks for your reply.....
I am very sorry for my 1st question because of not very specific Once more i am explaining in detai my question:-- I need to search .log files errors which is present under /xyz/install and /xyz/abc/var/sadm/install and dispaly all the output errors first time i am writing unix shell script..Pease help me how to write |
Quote:
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html http://www.tldp.org/LDP/Bash-Beginne...tml/index.html http://www.gnu.org/software/bash/man...ode/index.html http://www.grymoire.com/Unix/Sh.html http://www.tldp.org/LDP/abs/html/ http://wooledge.org/mywiki/BashFAQ?a...direct=BashFaq http://wooledge.org/mywiki/BashPitfalls |
All times are GMT -5. The time now is 11:13 PM. |