ops102:bash_scripting_2_-_loops
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ops102:bash_scripting_2_-_loops [2025/03/10 21:42] – [Video] chris | ops102: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 | + | echo "Colour |
done | done | ||
tput sgr0 # Reset to " | tput sgr0 # Reset to " | ||
Line 137: | Line 137: | ||
SECRET=$(( RANDOM % MAX + 1 )) | SECRET=$(( RANDOM % MAX + 1 )) | ||
| | ||
- | # Un-commend | + | # Un-comment |
# 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