hello...
sorry for this post, in know there are thousands of posts
with this question but nothings for me :-(
i need a script thats read the LAST 10 lines from a txt
if nothing was found ...msg $chan nothing found...
i have a little script:
on *:TEXT:!test *:#: {
filter -cff search.txt filter_search.txt * $+ $2- $+ *
var %x = $calc($lines(filter_search.txt) -9)
while (%x <= $lines(filter_search.txt)) {
msg $chan $read(filter_search.txt,%x)
inc %x
}
}
it works fine but how insert the line if nothing was found?
thy bodo