Update vitamins

This commit is contained in:
Rico Sta. Cruz 2015-02-16 17:43:14 +08:00
parent cd211218b3
commit b671d5403b
2 changed files with 30 additions and 7 deletions

View File

@ -50,14 +50,16 @@ layout: default
* Major benefits: bone health
* Fat-soluble
### Vitamin B12
### Vitamin B6
### Thiamin (Vitamin B1)
### Riboflavin (Vitamin B2)
### Niacin (Vitamin B3)
### Vitamin B6
### Vitamin B12
### Potassium
### Omega 3

25
sh.md
View File

@ -1,5 +1,5 @@
---
title: Shell scripting
title: Shell scripting (bash)
layout: default
---
@ -210,7 +210,28 @@ or
DIR="${0%/*}"
----------
### Getting options
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do
case $1 in
-V | --version )
echo $version
exit
;;
-s | --string )
shift; string=$1
;;
-f | --flag )
flag=1
;;
esac
shift
done
if [[ "$1" == "--" ]]; then shift; fi
# compact
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do; case $1 in
esac; shift; done
* http://wiki.bash-hackers.org/
* http://wiki.bash-hackers.org/syntax/shellvars