Tuesday, July 20, 2010

pattern match and occurence count

Hi
I am working with FPGA's and need to extract a count of number of resources used from an implmentation report. A sample line from the report looks like
 
inst "IoPort2Wrapperx/IoPort2x/IoReceiveFifoEndx/bReadOutputRecord_Data<63>" "SLICEM",placed CLBLM_X42Y87 SLICE_X56Y87  ,
.
.
.
.
 
I need to search for the pattern "placed CLB*" in the whole file and count its occurrences. But I need to make sure that repititions of CLB names (for example CLBLM_X42Y87) are NOT counted twice. Can I do this in Vim? Or am I better off writing a script for this?
 
Thanks
Suhas

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: