Jun 042011
Sometimes is useful to run over and over again the same command until something happen, for example you could do a ls -lrt
until a file has reached a certain dimension or is created, how to do it ?
Sure you can use bash history and use up arrow and return over and over again, or perhaps write some line of bash to get an infinite loop that run the same command, but there is a smarter approach to this : watch
.
Continue reading »