Skip to content Skip to sidebar Skip to footer
Showing posts with the label Sed

Recursively Traverse Directory And Replace Function Calls

I would like to traverse a directory recursively and find all files that have at least one of the f… Read more Recursively Traverse Directory And Replace Function Calls

Converting A Sed Regular Expression To Python Code

I can understand the following sed regular expression. sed 's/.*\(SNAP=[^|]*\) |.*/\1/'… Read more Converting A Sed Regular Expression To Python Code

How To Use Python Regex To Replace Using Captured Group?

Suppose I want to change the blue dog and blue cat wore blue hats to the gray dog and gray cat wore… Read more How To Use Python Regex To Replace Using Captured Group?

Python Remove Phone Numbers From String

I have a text file that looks like this: rgf34 | 9 | 2015-07-20 | hello this is my number 123456789… Read more Python Remove Phone Numbers From String