A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Linux / UNIX
Regarding awk start and end pattern
Joined: Sep 17, 2008
May 23, 2012 13:55:10
In a file I am trying to find a
in this way.
are repetitive in the file.
So, I want to process this pattern occurrence one by one.
line1.. line2.. # First pattern start pattern ... ... end pattern .... .... # Second pattern start pattern ... ... end pattern ... ... # Third pattern start pattern ... ... end pattern ... line n...
When I execute `awk '/start pattern/,/end pattern/' file.txt` I get
start pattern ... ... end pattern start pattern ... ... end pattern start pattern ... ... end pattern
Now, how can I process each occurrence one by one?
Thanks and Regards,
I agree. Here's the link:
subject: Regarding awk start and end pattern
Regular expression - capture groups
error starting up 2nd instance of tomcat
How to read each line from file in Shell script
Passing multiple filenames as argument
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014