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

Find In Files Using Ruby Or Python

A popular text editor has the following 'find in files' feature that opens in a dialog box:… Read more Find In Files Using Ruby Or Python

Using Subprocess To Get Output Of Grep Piped Through Head -1

The gist of what I'm trying to do is this: grep -n 'some phrase' {some file path} | hea… Read more Using Subprocess To Get Output Of Grep Piped Through Head -1

Fastest Way To Read File Searching For Pattern Matches

I made a python script to analyze logs. I have one observation to share, and two questions to ask. … Read more Fastest Way To Read File Searching For Pattern Matches