Hi All,
From the below line if we want to display all the text till found pattern dot/. I was trying with the below code but couldn't able
to print text before the pattern. it display texts which is found after pattern.
awk '/[Pp]assed/{print;getline;print}' file_name | sed 's/^[^:]*. *//'
input line from the file_name looks like
U12-C02: Software checks is passed. (Latest Software version : IED-2011-S : upgrade_01 4.13.2 (4.10.15_TREP-RT_13.31))
Currently it is displaying like this :
Software checks is passed. (Latest Software version : IED-2011-S : upgrade_01 4.13.2 (4.10.15_TREP-RT_13.31))
expected output should be like this :
U12-C02: Software checks is passed.
Many Thanks,
Optimus