![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| doubt regardin regex in grep | evergreen_cool | Shell Programming and Scripting | 4 | 09-02-2008 10:57 PM |
| Help with grep and regex | raichlea | UNIX for Dummies Questions & Answers | 14 | 04-16-2008 12:25 PM |
| grep with Regex help! | mvalonso | UNIX for Dummies Questions & Answers | 3 | 06-01-2007 04:36 PM |
| grep regex problem | iceman | Shell Programming and Scripting | 2 | 02-06-2005 12:44 PM |
| use of regex on grep | solea | UNIX for Dummies Questions & Answers | 0 | 09-30-2004 12:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem with grep Regex Error
Hi There
im trying to write a script to extract out errors in my log file. facing a problem right now. this is how my script will look like: #!/bin/csh setenv date `date '+%Y/%m/%d'` setenv today `date '+%d%m%Y'` setenv time `date '+%H%M'` setenv log /local/xxxxx/log cd $log /usr/xpg4/bin/grep -E 'Error | $date' error_log > $log/xxxx_log.$today.$time This is the error i get: %scripts> ./log_check.csh grep: RE error in Error | $date unknown regex error any suggestion? thanks wee |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|