Two very useful functions in bash that I use when having to run tests frequently are ‘forever’ and ‘doless’. Forever is just shorthand for an infinite loop
Doless pipes the output of a command to less while still showing the output as it is progressing until completion.
Loading ....
In the forever loop it has the advantage of restarting the command when ‘q’ is pressed which is great for a screen terminal dedicated to test runs. Compared to screen itself, it can be scrolled without needing to enter copy mode.Doless pipes the output of a command to less while still showing the output as it is progressing until completion.