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
Regards,
kirstenx
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
Regards,
kirstenx