← Back to team overview

sikuli-driver team mailing list archive

[Question #237141]: how to get total number of instances of one line in sikuli?

 

New question #237141 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237141

I have one text file like below,

Module Type/SType                  :ECCMU
Slot                                               :1
ModuleName                             :PBA: eCCM-U
PEC                                               :3JR20076AB
HardwareRelease                      :AA01
SerialNumber                             :BS1012P0306
Cabinet                                        :0
Shelf                                             :0
Module Application                  :2
Module Type                              :86
Module Sub Type                      :2

Module Type/SType                 :eCEM-U
Slot                                              :2
ModuleName                            : eCEM-U
PEC                                              :3JR20059DA
HardwareRelease                     :AB01
SerialNumber                            :YP111702A63
Cabinet                                       :0
Shelf                                             :0
Module Application                  :2
Module Type                               :86
Module Sub Type                        :1

Module Type/SType                   :XCEMU
Slot                                                :3
ModuleName                              : xCEMU
PEC                                                :300986049
HardwareRelease                       :A203
SerialNumber                              :10BC59000024
Cabinet                                         :0
Shelf                                              :0
Module Application                    :2
Module Type                                :86
Module Sub Type                         :2

Module Type/SType                    :eCEM-U
Slot                                                :4
ModuleName                              : eCEM-U
PEC                                                :3JR20059DA
HardwareRelease                        :AC01
SerialNumber                               :YP1219056A9
Cabinet                                          :10
Shelf                                                :20
Module Application                     :2
Module Type                                 :93
Module Sub Type                          :1

OUTPUT should be like below,

ModuleType -
1 -ECCMU , 
2 - eCEM-U 
1-  xCEMU

SerialNumber of  ECCMU  - BS1012P0306
SerialNumber of  XCEMU - 10BC59000024
SerialNumber of  1st eCEM-U - YP111702A63
SerialNumber of  2nd eCEM-U - YP1219056A9


Is it possible? please help me on this

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.