Posts by socket plus • 15 points
2 posts
- 
		0 votes1 answer27 viewsQ: as it adds a name below a specific searchI have a file with the name lista.txt cat lista.txt nome1 nome2 nome3 now I have searched the name with specific awk awk '/nome2/' lista.txt nome2 awk brings me the name I seek!! now I want to add… awkasked socket plus 15
- 
		1 votes1 answer80 viewsQ: Condition where you find the name "test" I print OK if NOthis 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… awkasked socket plus 15