read the last 10 lines from file - 01/12/05 02:12 PM
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:
it works fine but how insert the line if nothing was found?
thy bodo
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:
Code:
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