Search Results

Search: Posts Made By: itkamaraj
1,898
Posted By itkamaraj
awk '($0 ~ /ERROR/ && $0!~/IGNORE/){Q=$0;next}...
awk '($0 ~ /ERROR/ && $0!~/IGNORE/){Q=$0;next} ($0 ~ /ID/){print Q ORS "There is Error for ID " $NF}' test.txt
1,898
Posted By itkamaraj
change $1 to $0 awk '($1 ~...
change $1 to $0

awk '($1 ~ /ERROR/){Q=$0;next} ($0 ~ /ID/){print Q ORS "There is Error for ID " $NF}' Input_file
1,898
Posted By itkamaraj
try with this.. awk '/ERROR/{err=$0}err &&...
try with this..

awk '/ERROR/{err=$0}err && /ID/{printf("%s\nThere is Error for %s : %s\n",err,$(NF-2),$NF);err="";}' input.txt
1,898
Posted By itkamaraj
awk '/ERROR/{err=$0}err && /ID/{printf("%s\nThere...
awk '/ERROR/{err=$0}err && /ID/{printf("%s\nThere is Error for %s\n",err,$0);err="";}' input.txt
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy