The file size is more than 40 GB. Want to find some text and replace it. I will be grateful if I will get some suggestion how to do it. There are three steps: 1. find space and remove it 2. find > symbol and replace it with "> ". 3. find < symbol and replace it with " <".
Asked
Active
Viewed 336 times
-1
-
1Grep... since you've tagged this shell. – cs95 Sep 14 '17 at 12:35
-
1One good way to find out how to do it is to search for your exact question and look at the answers. – pvg Sep 14 '17 at 12:38
-
https://stackoverflow.com/questions/17140886/how-to-search-and-replace-text-in-a-file-using-python – AkshayDandekar Sep 14 '17 at 12:45