There is an update of TEXTSTAT.G4B v0.8
I Better:
a if more than one (counted) phrase exists in same line, printed in one line (instead for each instance a new line). Most extreme example in first print-screen:
BTW: first print-sctreen is with grub4efi in (crippled) text mode on VBox.
b I raised maximum file-size to 2MB
II New:
a conditional counting (and printing) with switches for [not] After and [not] Before [/][N]A:phraseA and [/][N]B:phraseB. Als offset is variable with [/]O[N]A:n and /O[N]B:n (without switch: default n=0). Also a range is possible with [/]R[N]A:n and [/]R[N]B:n
Some examples, see print-screens two and three:
Also colors are possible, just unlock line 21 #COLORTEST#, change $[0x..] color-codes as desired, see fourth print-screen:
b Possibility to read text files (numbered lines!) with switch /R[:s[:n]]. Some reading examples from grub4dos source code builtins.c See print-screens five, six and seven:
BTW horizontal Tab's are no problem, only first tab must be interpreted from h=0, cat somehow has an absolute column orientation ?
-----------------------------------------------------------------
I updated bonus file PAGESTAT.G4B too, with grub4efi even text mode is now correct. First two parts are in VBox-(u)efi mode (crippled text mode). Last part on real hardware with uefi (right text mode). TEXTSTAT.G4B uses new sub-routine if variable @uefi exists. See last print-screen: