I would like to use awk to modify a text file. The modified text file should transform any word starting with "te" or "Te" and doesn't include a number into "yyyyy" - to sort of censor the file.
So for example a file
Hello everyone,
today is a great day to get tested by mr. Tenet here!
Don't te11 anyone!
should be modified into
Hello everyone,
today is a great day to get yyyyy by mr. yyyyy here!
Don't te11 anyone!
Then I'd like to include information about the modification - to say how many lines the file has and how many lines were modified (is it needed to use a for cycle to do this?)
This info should be added to the end of the file and look like this:
The file has 3 lines and 2 out of these were modified.
I am quite lost and would appreciate any help. Thank you