cowsay + fortune + time script

#!/bin/bash VACAS=(apt bong bud-frogs bunny cock cower daemon default \ dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep \ hellokitty kitty koala luke-koala meow moofasa moose \ pony-smaller sheep skeleton stegosaurus suse three-eyes turkey \ turtle tux unipony-smaller vader vader-koala www) NVACAS=${#VACAS[*]} VACA=${VACAS[$((RANDOM%NVACAS))]} COLS=$(tput cols) COMANDOS=('fortune' 'date') NCOMANDOS=${#COMANDOS[*]} COMANDO=${COMANDOS[$((RANDOM%NCOMANDOS))]} $COMANDO|cowsay -f $VACA -W $((COLS - 4))
Muestra en la consola una "vaca" con un mensaje de fortune o la fecha y la hora

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.