User Tools

Site Tools


ops102:bash_scripting_2_-_loops

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ops102:bash_scripting_2_-_loops [2025/03/10 21:42] – [Video] chrisops102:bash_scripting_2_-_loops [2025/03/11 03:54] (current) – [tput Colour Codes] chris
Line 104: Line 104:
   do   do
   tput setaf $C   # Set foreground to colour $C   tput setaf $C   # Set foreground to colour $C
-  echo "This is colour $C"+  echo "Colour $C"
   done   done
   tput sgr0   # Reset to "normal" text mode   tput sgr0   # Reset to "normal" text mode
Line 137: Line 137:
   SECRET=$(( RANDOM % MAX + 1 ))    SECRET=$(( RANDOM % MAX + 1 ))
      
-        # Un-commend this line when debugging!+        # Un-comment this line when debugging!
         # echo "NOTE: the secret number is $SECRET"         # echo "NOTE: the secret number is $SECRET"
      
ops102/bash_scripting_2_-_loops.1741642950.txt.gz · Last modified: 2025/03/10 21:42 by chris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki