This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Regarding awk start and end pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Regarding awk start and end pattern" Watch "Regarding awk start and end pattern" New topic
Author

Regarding awk start and end pattern

Sujoy Choudhury
Ranch Hand

Joined: Sep 17, 2008
Posts: 136

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?

Thanks and Regards,
~Sujoy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding awk start and end pattern
 
It's not a secret anymore!