In this part, I give you an introduction to scripting.
Example:
Step1: create a scripting
piniheaven@fish:~/Documents$nano MyScriptpiniheaven@fish:~/Documents$ cat MyScript
#!/bin/bash
#specify using bash shell
#you can create any linux command here
ls
Hello="Hello,my first scripting!"
echo $Hello
Step 2: give MyScript execute permission
piniheaven@fish:~/Documents$ chmod u+x MyScript
piniheaven@fish:~/Documents$ ls -l
total 36
drwxrwxr-x 4 piniheaven piniheaven 4096 Aug 22 12:16 assemble
......
......
-rwxrw-r-- 1 piniheaven piniheaven 146 Aug 27 17:02 MyScript
dr-xr-xr-x 2 jack piniheaven 4096 Aug 25 21:42 tutorial
Step 3: execute MyScript
piniheaven@fish:~/Documents$./MyScriptassemble C++primer_exC++primer_noteEbook linux MyScriptQT_ex QT_notetutorial
Hello,my first scripting!