For Programmers: Free Programming Magazines  


Home > Archive > AWK > September 2006 > Awk Question- Hope experts can help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Awk Question- Hope experts can help
raynon

2006-09-13, 11:38 pm

Hi All,

I need some help with the below. I wish to extract a portion of text between START and STOP pair. From the internet, this is what i have found but my question is what is the syntax to make the "START" and "STOP" a variable such that i can vary the string that i search. I am using a C-shell by the way. Hope the experts here can give me some advice.
awk '/START/,/STOP/' filename
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com