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

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

Sort A Field In Ascending Order And Delete The First And Last Number

I have a data that looks like following: a 10,5,3,66,50 b 2,10,1,88,5,8,9 c 4,60,10,39,… Read more Sort A Field In Ascending Order And Delete The First And Last Number

Python: Consecutive Lines Between Matches Similar To Awk

Given: A multiline string string (already read from a file file) Two patterns pattern1 and pattern… Read more Python: Consecutive Lines Between Matches Similar To Awk

How Do I Do A Range Regex In Ruby Like Awk /start/,/stop/

I want to do an AWK-style range regex like this: awk ' /hoststatus/,/\}/' file In AWK this… Read more How Do I Do A Range Regex In Ruby Like Awk /start/,/stop/

Sort A Field In Ascending Order And Delete The First And Last Number

I have a data that looks like following: a 10,5,3,66,50 b 2,10,1,88,5,8,9 c 4,60,10,39,… Read more Sort A Field In Ascending Order And Delete The First And Last Number

Bash Script To Select A Single Python Function From A File

For a git alias problem, I'd like to be able to select a single Python function from a file, by… Read more Bash Script To Select A Single Python Function From A File