grep error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting grep error
# 1  
Old 02-15-2011
grep error

Code:
Terminated ./dft/PCRs/811310/badlogic-dontMap-dedicatedCompEnable.g at Mon Feb 14 10:09:08 IST 2011
SUCCESSFUL run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_PCRs_811310_badlogic-dontMap-dedicatedCompEnable.dir.pid31578/fv /  \}                                                                            } -cmdfile /tmp/_dft_PCRs_811310_badlogic-dontMap-dedicatedCompEnable.dir.pid31578/rc.cmd on ./dft/PCRs/811310/badlogic-dontMap-dedicatedCompEnable.g at Mon Feb 14 10:09:15 IST 2011 (runtime 293s)
Test of ./dft/PCRs/737614/CCMPR00737614-3.g on Mon Feb 14 10:08:10 IST 2011 on host nofclo081 (rslfile .pid18766_rsl_505)
Terminated ./dft/PCRs/737614/CCMPR00737614-3.g at Mon Feb 14 10:08:25 IST 2011
SUCCESSFUL run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_PCRs_737614_CCMPR00737614-3.dir.pid30668/fv /  \}                                                              } -cmdfile /tmp/_dft_PCRs_737614_CCMPR00737614-3.dir.pid30668/rc.cmd on ./dft/PCRs/737614/CCMPR00737614-3.g at Mon Feb 14 10:08:26 IST 2011 (runtime 16s)
Test of ./dft/compression/tap_control/Tap_dontMap_native_simulation.g on Mon Feb 14 10:06:51 IST 2011 on host nofclo105 (rslfile .pid18766_rsl_340)
Terminated ./dft/compression/tap_control/Tap_dontMap_native_simulation.g at Mon Feb 14 10:07:20 IST 2011
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))
FAILED run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_compression_tap_control_Tap_dontMap_native_simulation.dir.pid5764/fv /  \}                                                                            } -cmdfile /tmp/_dft_compression_tap_control_Tap_dontMap_native_simulation.dir.pid5764/rc.cmd on ./dft/compression/tap_control/Tap_dontMap_native_simulation.g at Mon Feb 14 10:07:21 IST 2011 (runtime 30s)



Test of ./dft/SMG/native/compression/test2/compressInDesign.g on Mon Feb 14 10:04:33 IST 2011 on host nofclo165 (rslfile.pid18766_rsl_47)
Terminated ./dft/SMG/native/compression/test2/compressInDesign.g at Mon Feb 14 10:04:34 IST 2011
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))
FAILED run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_SMG_native_compression_test2_compressInDesign.dir.pid23239/fv / \}                                                                           } -cmdfile /tmp/_dft_SMG_native_compression_test2_compressInDesign.dir.pid23239/rc.cmd on ./dft/SMG/native/compression/test2/compressInDesign.g at Mon Feb 14 10:04:45 IST 2011 (runtime 12s)
Test of ./dft/SMG/native/compression/test2/compressInMultipleDesign-new.g on Mon Feb 14 10:04:33 IST 2011 on host nofclo084 (rslfile .pid18766_rsl_48)
Terminated ./dft/SMG/native/compression/test2/compressInMultipleDesign-new.g at Mon Feb 14 10:04:49 IST 2011
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))
FAILED run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_SMG_native_compression_test2_compressInMultipleDesign-new.dir.pid25862/fv /  \}                                                                               } -cmdfile /tmp/_dft_SMG_native_compression_test2_compressInMultipleDesign-new.dir.pid25862/rc.cmd on ./dft/SMG/native/compression/test2/compressInMultipleDesign-new.g at Mon Feb 14 10:04:50 IST 2011 (runtime 17s)
Test of ./dft/et/testcoverage1/rrfa_dfa_full_flow.g on Mon Feb 14 10:07:02 IST 2011 on host nofcnl006 (rslfile .pid18766_rsl_357)
Terminated ./dft/et/testcoverage1/rrfa_dfa_full_flow.g at Mon Feb 14 10:08:59 IST 2011
SUCCESSFUL run of /home/rcap/logs/latest/bin/linux/rc-o -e {  if \{\[get_attribute_status ovf_verification_directory -type root\]\} \{  set_attr ovf_verification_directory /tmp/_dft_et_testcoverage1_rrfa_dfa_full_flow.dir.pid10926/fv /  \}                                                                      } -cmdfile /tmp/_dft_et_testcoverage1_rrfa_dfa_full_flow.dir.pid10926/rc.cmd on ./dft/et/testcoverage1/rrfa_dfa_full_flow.g at Mon Feb 14 10:09:00 IST 2011 (runtime 118s)

i have this in a file called boat.....i tried to run the script as
Code:
#!/usr/bin/sh
while read line
do
grep -e "Error" $line | awk '/Error/'
grep -e "FAILED"$line | awk '{print $22}'
done

it is giving me the output as
Code:
grep: nated: No such file or directory
grep: ./dft/PCRs/811310/badlogic-dontMap-dedicatedCompEnable.g: No such file or directory
grep: at: No such file or directory
grep: Mon: No such file or directory
grep: Feb: No such file or directory
grep: 14: No such file or directory
grep: 10:09:08: No such file or directory
grep: IST: No such file or directory
grep: 2011: No such file or directory
grep: ./dft/PCRs/811310/badlogic-dontMap-dedicatedCompEnable.g: No such file or directory
grep: at: No such file or directory
grep: Mon: No such file or directory
grep: Feb: No such file or directory
grep: 14: No such file or directory
grep: 10:09:08: No such file or directory
grep: IST: No such file or directory
grep: 2011: No such file or directory
grep: invalid option -- t
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
grep: invalid option -- t
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))
        Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]})


i want the output as
Code:
 Error: command failed (Failed on assert({[string compare $errorInfo ""] == 0 && [regexp {tix} $errorInfo]}))

FAILED : ./dft/PCRs/811310/badlogic-dontMap-dedicatedCompEnable.g

can u help please

thanks
harjinder

Last edited by Franklin52; 02-15-2011 at 04:03 AM.. Reason: Please use code tags
# 2  
Old 02-15-2011
Try this,
Code:
awk '/Error/{print}/FAILED/{print $1": "$22}' inputfile

# 3  
Old 02-15-2011
thanks a lot!!!!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies

2. Shell Programming and Scripting

Grep command error

I am using a command but getting an error despite of modifying it many times. Pattern=`grep story file|cut -c 19-24` Where as 'story' is the pattern to be matched and i want to cut the value of characters ranging from 19 to 24 when this pattern is found in a variable. file consists of below... (11 Replies)
Discussion started by: pratima.kumari
11 Replies

3. Shell Programming and Scripting

Grep 'error' between two timestamps

Hi, Need to grep for a error in a log file but between two timestamps / patterns example: in the below log file if the given timestamps are 14:00 to 15:00 and m greping for error only error3 should come in the output. pls note that apart from timestamps printed, the log file has no... (2 Replies)
Discussion started by: amicableperson
2 Replies

4. Shell Programming and Scripting

error in grep

Hello Team, if ; then is there an syntax error above line? i got error like can i know how to resolve this error? Regards (2 Replies)
Discussion started by: rocking77
2 Replies

5. Shell Programming and Scripting

grep only last occurred error in error.log,

hi folk i need your help to find one logic.... i have error log same as any other error logs which get populated by no of events and errors... but i need to grep the last occured errors.. which cant be duplicate. here is my script. ======================== #!/usr/bin/ksh grep -i... (3 Replies)
Discussion started by: tapia
3 Replies

6. Shell Programming and Scripting

grep can't open error

Hi, Thanks for all your help. This forum is excellent. I just learnt PERL over the last few weeks by coding and asking questions.... I have one more. When I run my script I get the following error msg. The grep statement I have is `grep "Number of jobs processed:" output | sort -u |... (10 Replies)
Discussion started by: nurani
10 Replies

7. Shell Programming and Scripting

error in grep

hi!! I am getting an error while grepping. The error is like "grep: RE error 41: No remembered search string." Can u please help with it? Thanks in advance.........:) (3 Replies)
Discussion started by: tushar_tus
3 Replies

8. Shell Programming and Scripting

error in grep

Hi gurus I am running a grep statement like this (ls -ltr eCustomerCME* | grep ^- | tail -1 | awk ' { print $6,$7,$8 } ') its returning an error as follows "ksh: /bin/ls: arg list too long" Does anybody know why this error occurs. this seems to work fine in other boxes except this... (6 Replies)
Discussion started by: ragha81
6 Replies

9. UNIX for Dummies Questions & Answers

grep error

Can anyone tell me what this error means?: Usage: grep -hblcnsviw pattern file . . . Thanks in advance! (2 Replies)
Discussion started by: Dave724001
2 Replies

10. UNIX for Dummies Questions & Answers

grep error message

hi, I get this error message after I pipe a lot of output into grep. Does anyone know what his means? grep: writing output: Invalid argument thanks, gammaman (3 Replies)
Discussion started by: gammaman
3 Replies
Login or Register to Ask a Question