![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Search, replace string in file1 with string from (lookup table) file2? | gstuart | Shell Programming and Scripting | 9 | 06-08-2009 07:11 AM |
| search excat string in another string (grep "fails") | bora99 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 07:41 AM |
| Perl: Search for string on line then search and replace text | Crypto | Shell Programming and Scripting | 4 | 01-04-2008 10:24 AM |
| grep: RE error 41: No remembered search string. | fkaba81 | Shell Programming and Scripting | 2 | 06-22-2006 03:23 AM |
| appending string to text file based on search string | malaymaru | Shell Programming and Scripting | 1 | 06-09-2006 09:53 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
RE error 41: No remembered search string.
I found when i run this code
#! /bin/ksh error_log="/tmp/log3.txt" while read line ; do show=`grep "$line" $error_log|tail -1` case $line in "Finished") msg="VOLUME_MGR_ERROR" echo $line echo "$show|$msg\n" ;; "WARNING") msg="SYSTEM_ERROR" echo $line echo "$show|$msg\n" ;; esac done < err_list.txt ======Result======= Finished Jun 19 08:50:40 siamapl1 INFO: [ID 702911 user.error] [CPOSPO.sh]: PPMS Batch : Finished with return code 0|VOLUME_MGR_ERROR WARNING |SYSTEM_ERROR grep: RE error 41: No remembered search string. ================= How to solve? thank in advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|