One quick way of sending set of character to standard output repeatedly is using the linux command yes.
Here's how to print string of words repeatedly from your screen.
Prints words 10 times
# yes VeRTITO | head -10
~~~~~~~~~~~~~~~~
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
VeRTiTO
~~~~~~~~~~~~~~~~
Prints 999 times.
# yes 999 Too many | head -999
~~~~~~~~~~~~~~~~
Too many
Too many
Too many
Too many
....
~~~~~~~~~~~~~~~~
To print words forever would be
# yes This is forever
'This is forever' would be printed repeatedly until terminated.
No comments:
Post a Comment
Thanks for the comment and for peeping into my blogspot. Hope you enjoy your reading them.
If you wish to receive posts updates, you can subscribe directly from this link:
http://feeds.feedburner.com/VertitosBlogspot
using any RSS reader or even Google Reader.
Again, appreciate your site visits.
Cheers then
VeRTiTO
Email: vertito@gmail.com