![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scan Multiple Dir/Files | tonyd | UNIX for Dummies Questions & Answers | 7 | 03-29-2008 11:52 PM |
| Perl script to scan back lines | gholdbhurg | Shell Programming and Scripting | 3 | 03-18-2008 08:33 AM |
| Perl script to scan through files | gholdbhurg | Shell Programming and Scripting | 1 | 03-05-2008 06:53 PM |
| port scan shell script | nrbhole | Shell Programming and Scripting | 3 | 01-31-2008 07:28 AM |
| IP Name scan | nicke30 | UNIX for Dummies Questions & Answers | 2 | 07-18-2001 02:32 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Script to Scan proclog files
i need to create a shell script, which will go into a directory , and scan the files in it for defined errors, there will be around 10 files in the directory.
|
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
#!/usr/bin/ksh for file is `ls directoryname` do echo $file cat $file | grep -i "error pattern" >newfile done |