
Bash memo.
Functions
OptionalSyntax:
function functionName {
passedArg1=$1
passedArg2=$2
local resultValue='Result value'
echo "$resultValue"
}
returnedValue=$(functionName arg1 arg2)
Colors
echo -e "\e[1;34mThis is a blue text.\e[0m"
| Attribute | Color | BgColor |
|---|---|---|
| 00 - none | 30 - black | 40 - black |
| 01 - bold | 31 - red | 41 - red |
| 32 - green | 42 - green | |
| 33 - yellow | 43 - yellow | |
| 04 - underscore | 34 - blue | 44 - blue |
| 05 - blink | 35 - magenta | 45 - magenta |
| 36 - cyan | 46 - cyan | |
| 07 - reverse | 37 - white | 47 - white |
| 08 - concealed |
No comments:
Post a Comment