Code: Select all
\\\ Begin File - latest.log
... <truncated>
[17:56:14] [Server thread/INFO]: <Playername0> !seed <valuable text string>
... <truncated>
\\\ End File
Currently this is accomplished via a batch using "findstr /i "!seed" logs\latest.log > NewSeed.txt"
Which returns the valuable line to a new file.
Code: Select all
\\\ Begin File - NewSeed.txt
[17:56:14] [Server thread/INFO]: <Playername0> !seed <valuable text string>
\\\ End File
Once that's output to a file/variable I'd like to write it to server.properties (IniWrite probably can accomplish this?) and finish processing my server files accordingly.
All I need is the syntax to parse that NewSeed.txt to trim everything "!seed " and left, OR read only everything after "!seed ".
Any tips? RegEx?