Try something simple like
cat your-textfile | sed 's/october/oct/g' | sed 's/November/nov/g'
If this works for you, further improvements can be made later.
solved How to replace multiple string with multiple value with shell script in text file