I was looking for the cleanest way to accomplish writing $2 to a text file the amount of times specified. I'm sure this is possible and i will provide and example to what I am looking for...
on *:text:*write*:?: { write test.txt $2 "$3 times"}
so, for an example, the user would type
write Hello 3
this would write hello on 3 lines to test.txt, the contents should be as following in test.txt
Hello
Hello
Hello
Thank you!
The way I would have approached this is with a timer, I don't really know an easier way. Anyways, I posted this looking for the CORRECT way to do this or at least the most clean.