#sigle double inverse quotes
echo "The use of sigle quotes:"
#connect the string, escape the space
echo 'hello world'
#ingore special character such as '\' '$'
echo '$0, will not show the script filename'
echo
echo "The use of double quotes:"
#show the meaning of the special character
echo "$0, will show the script filename"
echo
echo "The use of inverse quotes:"
#"Replace the command with the output"
echo `date`
#the use of wildcard() and metachar
echo "The use of wildcard:"
# *means any,? means one char, [abc]means any one of abc, [!abc] any one but abc, {str1,str2} any one of str1 or str2
ls f*
ls f?le
echo "The use of metachar:"
# the metachar always be used in regex.
#such as ^ means the head of line, $ means the end of line, . means onechar, * meas any chars, x\{m\} meas char x exists in m places
ls grep[^a-z]
ls grep[1-9$]
#the use of brace and parentheses
echo "The use of brace:"
#To split variable and other characters to get true value
name="123"
echo $namehello
echo ${name}hello
echo "The use of parentheses:"
#the same as inverse quotes
echo "Now is:" $(date)
#use as to initial array and command array
echo "The use of semicolon:"
#use to contain two command in one line
echo $PWD;echo $PATH