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

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

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

Grep For A Word, And If Found Print 10 Lines Before And 10 Lines After The Pattern Match

I am processing a huge file. I want to search for a word in the line and when found I should print … Read more Grep For A Word, And If Found Print 10 Lines Before And 10 Lines After The Pattern Match

Parse Large Python Xml Using Xmltree

I have a python script that parses huge xml files ( largest one is 446 MB) try: parser … Read more Parse Large Python Xml Using Xmltree

Python 3 Filter - Bug Or Feature?

Okay, I am a complete newbie to Python - and stackoverflow. I am coming from a ksh and Perl backgr… Read more Python 3 Filter - Bug Or Feature?