what i am doing is using a whle loop to search for the
text.
so if i typed !find bla bla bla
it would look through the file for those words.
it works well for searching 1 word
like but if the search string is like:
!find this is an example
it will look for the exact sentance
whereas i want it so
it will search each separate word
so
example:
!find this is an exampleit will find reaults like
this_is_an_example_or in a different order
this example an isand i am using the script like
alias !find {
var %i = 1,%t = $calc($lines(test.txt) + 1)
while (%i < %t) {
if (text string here isin $read(test.txt, %i)) {
echo -a Found: $read(test.txt, %i)
inc %i
}
}
}any ideas thanks