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

Combine Lines With Matching Keys

I have a text file with the following structure ID,operator,a,b,c,d,true WCBP12236,J1,75.7,80.6,65.… Read more Combine Lines With Matching Keys

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/

Change First Line Of A File Using Bash

I need to change a single line in a file. It is always in the first line of the file. It looks lik… Read more Change First Line Of A File Using Bash

Storing Value From A Parsed Ping

I'm working on some code that performs a ping operation from python and extracts only the laten… Read more Storing Value From A Parsed Ping

How Can I Extract Numeric Ranges From 2 Columns And Print The Range From Both Columns As Tuples?

I'm quite new on bash scripting and on python programing; at the moment have 2 columns which co… Read more How Can I Extract Numeric Ranges From 2 Columns And Print The Range From Both Columns As Tuples?