Here is a sample:
PokerStars Hand #154789489984: Tournament #1595060295, $6.85+$0.15 USD Hold'em No Limit - Match Round I, Level I (10/20) - 2016/06/15 19:59:32 ET
Table '1595060295 1' 2-max Seat #2 is the button
Seat 1: AAArshak (610 in chips)
Seat 2: Z_Germans_cs (390 in chips)
Z_Germans_cs: posts small blind 10
AAArshak: posts big blind 20
*** HOLE CARDS ***
Z_Germans_cs: raises 20 to 40
AAArshak: calls 20
*** FLOP *** [Th 2c 8s]
Z_Germans_cs: bets 40
AAArshak: raises 40 to 80
Uncalled bet (40) returned to AAArshak
AAArshak collected 160 from pot
AAArshak: doesn't show hand
*** SUMMARY ***
Total pot 160 | Rake 0
Board [Th 2c 8s]
Seat 1: AAArshak (big blind) collected (160)
Seat 2: Z_Germans_cs (button) (small blind) folded on the Flop
The utility would locate the player name in seat 1 ("AAArshak" in the above sample), find all instances of his name within the single entry (not the other entries within the file) and replace it with the text "BB". Essentially you could have the same effect by running find and replace on the entry, finding "AAArshak" and replacing with "BB".
... Essentially you could have the same effect by running find and replace on the entry, finding "AAArshak" and replacing with "BB".
I'd need an alternate command as well that would allow me to perform the same function with the player name in seat 2, replacing the name with the text "SB".