You've already forked scripts-random
Add first scripts
This commit is contained in:
13
01_bash/random_color.sh
Executable file
13
01_bash/random_color.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
TXT='Voy a escribir un texto mucho más largo para que tenga mucho más que coger. The quick brown fox jumped over the lazy dog.'
|
||||
|
||||
WORDS=( $TXT )
|
||||
|
||||
for WORD in "${WORDS[@]}"; do
|
||||
let "i=$RANDOM % 256"
|
||||
echo -en "\e[38;5;${i}m$WORD \e[0m";
|
||||
done;
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user