Hi,
My log file has error messages, universal no and universal ID. The problem is i have to search Universal ID from the error messages. But the log file write error messages with universal no and error messages in one line. and universal no with universal ID in other line. So i write two loops for to grab the universal ID. First grep all universal no in one go. But for Universal ID i have to run grep command for each universal no. I am using grep -m 1 option also to out from the log once i found the pattern. But issue is every time it will start the searching from starting. So there is any way that i start search when i left.
and server write random thing between the lines. So i can't use -B option grep.