Getting started Example #!/usr/bin/env bash NAME="John" echo "Hello $NAME!" Variables NAME="John" echo $NAME echo "$NAME" echo "${NAME}!" String quotes NAME="John" echo "Hi $NAME" #=> Hi John echo 'Hi $NAME' #=> Hi $NAME Shell execution echo "I'm in $(pwd)" echo "I'm in `pwd`" # Same
from Pocket https://ift.tt/2AaMeBD
via IFTTT
留言
張貼留言