jeudi 26 février 2015

Printing out range of a pattern with awk


Im trying to print out a section of a txt file using awk. Basically I want to print out the paragraph in the a txt file that begins with certain words all up to a blank line.Here's what I have so far:



awk '$1 == "What exactly is Free", $1 == "^$" {print $1}' br.txt


Any suggestions?



Aucun commentaire:

Enregistrer un commentaire