1
this is the code I’m trying to solve and its result!
awk '{if ($0 ~ "teste") { print "ok"} else {print "no" }}' arquivo.txt
no
ok
no
no
no
as you can see he checked every line himself had the name test and printed okay and on lines that had not printed in the !!
I know awk works line by line!
wanted him to just tell me OK if you have the expression I seek or IN THE if there is no!
thank you so much bro! that’s what I wanted! with bash I knew how to make more wanted just with awk! more pod explain to me how it works not intendi some parts!
– socket plus
@socketplus of course! Updated
– fedorqui
very obg! @fedorqui
– socket plus