I need to replace _
(underscore) with ?
(question mark) in a file containing email addresses.
The file looks like below:
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
The expected output is:
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
EFT_020034-E015133 20140624 /ACC/[email protected] SHR END
How can I do this in sed or awk without affecting other underscores and only the underscore between EMAIL+
(constant) and SHR
(constant). The changed content should be saved in a new file.