2014年3月19日星期三

Linux Commands for Beginners lesson 10 -- Echo And Creating Variables

In this part, I introduce the echo command as well as creating variables.
 This tutorial is pretty easy,but very important to bash scripting which I will introduce in following tutorials.


1.COMMAND:
     echo
  DESCRIPTION:
     display a line of text
  SYNOPSIS:
     echo string


Example:
piniheaven@fish:~/Documents$ echo"Hello,CSDN"
Hello,CSDN

2.Creating variable and calling variable

Example:
piniheaven@fish:~/Documents$ Hello="Hello,CSDN" #create variable
piniheaven@fish:~/Documents$ echo$Hello         #call variable
Hello,CSDN

没有评论:

发表评论