I need to search and replace multiple words. For example, in my file, I want to search for any name of week days that appears with a comma after it:
Fri, to a name without comma:
Friday. I know how to do this one by one:
sed 's/Sat,/Saturday/g' myfile.txt > output.txt
But due to the fact that I have to check every week day in multiple files, I need to find a more efficient way to check all the names and replace them at once. I am aware this can be done through scripting but I have not worked on that before. If someone familiar with this, I can learn from it this time and do it myself next time.