more bash examples

This commit is contained in:
Marina Wahl 2014-07-01 19:51:31 -04:00
parent 68e3f7d899
commit 4b0a965e4a
9 changed files with 199 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#! /bin/bash
echo "The Linux Console variables are:"
echo
echo "\33 is the escape char, to take an action. Ex: using \033[34m:"
echo -e "\033[34m Hello! \033[0m"
echo
echo " [ is the start, 34 the parameter, m is the letter (action)"
echo " letters can be h, l, m, q, s, u..."
echo " parameters can be 0, 1 (bold), 2 (dim intensity), 5 (blink), 7 (reverse), 11, 25, 27, 30-27 (colors), 4047 (bkgd colors)..."
echo
echo "For example:"
echo -e "\033[5m Hey! \033[0m"
echo
echo "Now, quotes... the black quote is used to execute a cmd (\`cmd\`)"
echo