I know this is a very simple question, but im total new in shell scripts
i txt file called "berkay" and its contents are similar to
03:05:16 debug blablabla1
03:05:18 error blablablablabla2
05:42:14 degub blabblablablabal
06:21:24 debug balbalbal1
I want to print rows whose second column is an error, so the output will be
03:05:18 blablablablabla2 error
I think of something like "if nawk {$ 2}", but I need help.
source
share