How can I code a command / program in a Unix shell without writing a loop to a script or other application.
For example, I wrote a script that displays the value of a light sensor, but I'm still testing it right now, so I want it to run it in a loop, re-running the executable.
Perhaps I would also like to just run "ls" or "df" in a loop. I know that I can do this easily in a few lines of bash code, but the ability to enter commands in the terminal for any given set of commands will be just as useful to me.
source
share