If you’ve been using Linux for a while, you may be familiar with the terminal command, date. The date command will display the current date and time to the terminal. On my system, the default output of date looks like this:
Continue reading Creating A Terminal Window Clockwhile loop
Previously I’ve shown how to use the bash while loop in a bash script. Today I’m going to show how to use another type of do loop in bash: the for loop. The for loop is a little different from the other looping structures in bash. The other loop structures work by evaluating whether an …
Continue reading Bash to Basics: The For Loop