I'm very new to AWK. Who can help me with a simple code to do this:
Read a file temp.txt
If the file contains the word "apple", change all words "red" into the word "blue" and if the file contains the word "berry", change all words "yellow" into the word "green"
Overwrite the file temp.txt...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.