Add first scripts

This commit is contained in:
2024-02-22 21:02:37 +01:00
parent ddeea8beb4
commit 3cd7b9bfaf
17 changed files with 852 additions and 0 deletions

13
01_bash/random_color.sh Executable file
View 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