script to replace a word on a txt and delete certain lines
Budget: €8 – €30 EUR
I need a program to replace a given word for a random one (always same random word) on a txt file.
I also want the program to delete certain lines:
- Line containing *** HOLE CARDS ***
- And the following line, in the example below will be this one: Dealt to McRogerPoker [Jc 8h]
I want a very simple UI and I want the program to store/remember the input settings
Inputs:
- File or folder where the txt files are
- Nick (textbox): Word that will be replaced for a random 8 characters word (letters or numbers), always the same random word
- Output folder where the modified txt files will be saved
EXAMPLE
- NICK: McRogerPoker
- INPUTFILE.txt:
PokerStars Zoom Hand #231734977439: Hold'em No Limit ($0.25/$0.50) - 2021/11/27 0:25:47 ART [2021/11/26 22:25:47 ET]
Table 'Baade' 6-max Seat #1 is the button
Seat 1: elniquitouru ($47.61 in chips)
Seat 2: ShipItBaller ($109.41 in chips)
Seat 3: McRogerPoker ($50 in chips)
Seat 4: thevagosx ($67.45 in chips)
Seat 5: NathanL57 ($84.32 in chips)
Seat 6: Andnet ($50 in chips)
ShipItBaller: posts small blind $0.25
McRogerPoker: posts big blind $0.50
*** HOLE CARDS ***
Dealt to McRogerPoker [Jc 8h]
NathanL57 is disconnected
thevagosx: raises $0.75 to $1.25
NathanL57: folds
Andnet: folds
elniquitouru: folds
ShipItBaller: folds
McRogerPoker: folds
Uncalled bet ($0.75) returned to thevagosx
thevagosx collected $1.25 from pot
thevagosx: doesn't show hand
*** SUMMARY ***
Total pot $1.25 | Rake $0
Seat 1: elniquitouru (button) folded before Flop (didn't bet)
Seat 2: ShipItBaller (small blind) folded before Flop
Seat 3: McRogerPoker (big blind) folded before Flop
Seat 4: thevagosx collected ($1.25)
Seat 5: NathanL57 folded before Flop (didn't bet)
Seat 6: Andnet folded before Flop (didn't bet)
THIS TEXT PATTERN WILL BE SEVERAL TIMES OVER THE FILE
-RANDOM WORD: 1234abcd
-OUTPUTFILE.txt
PokerStars Zoom Hand #231734977439: Hold'em No Limit ($0.25/$0.50) - 2021/11/27 0:25:47 ART [2021/11/26 22:25:47 ET]
Table 'Baade' 6-max Seat #1 is the button
Seat 1: elniquitouru ($47.61 in chips)
Seat 2: ShipItBaller ($109.41 in chips)
Seat 3: 1234abcd ($50 in chips)
Seat 4: thevagosx ($67.45 in chips)
Seat 5: NathanL57 ($84.32 in chips)
Seat 6: Andnet ($50 in chips)
ShipItBaller: posts small blind $0.25
1234abcd: posts big blind $0.50
NathanL57 is disconnected
thevagosx: raises $0.75 to $1.25
NathanL57: folds
Andnet: folds
elniquitouru: folds
ShipItBaller: folds
1234abcd: folds
Uncalled bet ($0.75) returned to thevagosx
thevagosx collected $1.25 from pot
thevagosx: doesn't show hand
*** SUMMARY ***
Total pot $1.25 | Rake $0
Seat 1: elniquitouru (button) folded before Flop (didn't bet)
Seat 2: ShipItBaller (small blind) folded before Flop
Seat 3: 1234abcd (big blind) folded before Flop
Seat 4: thevagosx collected ($1.25)
Seat 5: NathanL57 folded before Flop (didn't bet)
Seat 6: Andnet folded before Flop (didn't bet)
I also want the program to delete certain lines:
- Line containing *** HOLE CARDS ***
- And the following line, in the example below will be this one: Dealt to McRogerPoker [Jc 8h]
I want a very simple UI and I want the program to store/remember the input settings
Inputs:
- File or folder where the txt files are
- Nick (textbox): Word that will be replaced for a random 8 characters word (letters or numbers), always the same random word
- Output folder where the modified txt files will be saved
EXAMPLE
- NICK: McRogerPoker
- INPUTFILE.txt:
PokerStars Zoom Hand #231734977439: Hold'em No Limit ($0.25/$0.50) - 2021/11/27 0:25:47 ART [2021/11/26 22:25:47 ET]
Table 'Baade' 6-max Seat #1 is the button
Seat 1: elniquitouru ($47.61 in chips)
Seat 2: ShipItBaller ($109.41 in chips)
Seat 3: McRogerPoker ($50 in chips)
Seat 4: thevagosx ($67.45 in chips)
Seat 5: NathanL57 ($84.32 in chips)
Seat 6: Andnet ($50 in chips)
ShipItBaller: posts small blind $0.25
McRogerPoker: posts big blind $0.50
*** HOLE CARDS ***
Dealt to McRogerPoker [Jc 8h]
NathanL57 is disconnected
thevagosx: raises $0.75 to $1.25
NathanL57: folds
Andnet: folds
elniquitouru: folds
ShipItBaller: folds
McRogerPoker: folds
Uncalled bet ($0.75) returned to thevagosx
thevagosx collected $1.25 from pot
thevagosx: doesn't show hand
*** SUMMARY ***
Total pot $1.25 | Rake $0
Seat 1: elniquitouru (button) folded before Flop (didn't bet)
Seat 2: ShipItBaller (small blind) folded before Flop
Seat 3: McRogerPoker (big blind) folded before Flop
Seat 4: thevagosx collected ($1.25)
Seat 5: NathanL57 folded before Flop (didn't bet)
Seat 6: Andnet folded before Flop (didn't bet)
THIS TEXT PATTERN WILL BE SEVERAL TIMES OVER THE FILE
-RANDOM WORD: 1234abcd
-OUTPUTFILE.txt
PokerStars Zoom Hand #231734977439: Hold'em No Limit ($0.25/$0.50) - 2021/11/27 0:25:47 ART [2021/11/26 22:25:47 ET]
Table 'Baade' 6-max Seat #1 is the button
Seat 1: elniquitouru ($47.61 in chips)
Seat 2: ShipItBaller ($109.41 in chips)
Seat 3: 1234abcd ($50 in chips)
Seat 4: thevagosx ($67.45 in chips)
Seat 5: NathanL57 ($84.32 in chips)
Seat 6: Andnet ($50 in chips)
ShipItBaller: posts small blind $0.25
1234abcd: posts big blind $0.50
NathanL57 is disconnected
thevagosx: raises $0.75 to $1.25
NathanL57: folds
Andnet: folds
elniquitouru: folds
ShipItBaller: folds
1234abcd: folds
Uncalled bet ($0.75) returned to thevagosx
thevagosx collected $1.25 from pot
thevagosx: doesn't show hand
*** SUMMARY ***
Total pot $1.25 | Rake $0
Seat 1: elniquitouru (button) folded before Flop (didn't bet)
Seat 2: ShipItBaller (small blind) folded before Flop
Seat 3: 1234abcd (big blind) folded before Flop
Seat 4: thevagosx collected ($1.25)
Seat 5: NathanL57 folded before Flop (didn't bet)
Seat 6: Andnet folded before Flop (didn't bet)