Good day I made a command where I find the first occurrence of a word in a txt and returns the entire line to a channel
On *: text: word:
Msg # $ read (c:\test.txt, nts, $ 2)
}
My doubt is how I would do to find the last occurrence of this word.
ex:
test.txt

Yellow ball
Blue ball

Which command would you use to find the word "ball" she being the second occurrence "Blue Ball"?

Thank You