This looks like you'll need regex to save each sentence to a variable then 'else/if' statements to move it along after each capture. However, more info is needed plz.
Are we to assume correct punctuation? Are there actual New Lines '\n' or is the data just 'Word Wrapped'?
If you could...
Ofcourse the more info provided will yield a more pimped and polished regex. However, with the info provided I was just throwing a bone since it hadn't been mentioned. 👌
.{3}$
The above regex will capture the last 3 characters from a end of line. Replace the number with whatever number you want depending on how far back you want to go.
Bugjaeger: ADB bridge
Spare phone: install Bugjaeger here; acts as PC (sending commands)
Your phone: target device (receiving commands)
Bugjaeger acts as ADB bridge and is installed on spare phone, you'll send commands from this phone to your device.
"Host (master) is the Android device where you've installed Bugjaeger. Target (slave) is the device you want to control through the Bugjaeger app. Host and target are usually connected via USB cable or WiFi, but sometimes the same device can be host and target at the same time (see #11.)"
Taken...