Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding awk start and end pattern

 
Sujoy Choudhury
Ranch Hand
Posts: 136
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In a file I am trying to find a pattern in this way.
The start/end patterns are repetitive in the file.
So, I want to process this pattern occurrence one by one.

eg.
File.txt




When I execute `awk '/start pattern/,/end pattern/' file.txt` I get


Now, how can I process each occurrence one by one?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic