I have a huge set of text files inside a folder. And now I need to replace the "~" symbol with the "~\n" from all text files using python script
I know this can be achieved in notepad++ where I need to put the "~" symbol in the Find what and "~\n" replace with section and I need to check the extended option available and click on replace all. but I need to do it one by one.
I am using "\n" just to break the single line into multiple lines and "~" is my delimiter
So it would be great if someone gives me a python script to do the same at one shot for all files.