Hi,
I would like to know if there is a way to mask obscene words and other contents like email id's/phone numbers in the file. Below is the sample input /output.
Sample data :
cat smp.txt
The service is really bad . My email abc@gmail.com
You can contact me at 4078909831
Output data
The service is really bad . My email ***@***.***
You can contact me at **********
Sometimes the phone numbers could be just be with a space also.
I can use a SED to mask a complete obscene word (like 'abc' with *** ) but i want to know if there is a better way for email and phone numbers.