just wondering if this is possible using grep in conjunction with other commands - I am not really new to using Linux or the grep command but I am pretty new to many commands like sed and awk, so yeah, I am new to linux
I have a log file (text format) that puts date stamps on the first line of an error. the full error output however, could be made up of many lines (variable) that do not contain the date stamp. when I do a straight grep command, I only get the line containing the date I am searching for but I lose the error data contained on the lines below that.
I know that gnu grep can output a set number of lines after the found string but I don't have that installed and I am not able to add it to these machines (I can't add non-essential stuff to these production boxes). besides, since the error can be a variable number of lines, I can't use a set number to catch everything.
since these log files are very large, I'm just trying to cut my losses by finding my matching string with grep and then just output the whole rest of the file - this will at least cut down on the size of the output and can allow for manual perusing from the top of the output.
I'm new to these forums (just singed up a few mins ago! w00t!) and I thought this was the best place for me to ask this, sorry if it's not. any help is appreciated. thx!