#學習使用shell 實作shellVariable.sh 使用echo
echo "This is a test!"執行結果 This is a test!
建立變數
shvar="This is a test"
echo $shvar執行結果 This is a test
編輯紀錄
ll $lastdir假設要使用shell的程序執行的任務
allfiles=*
echo $allfiles執行結果 印出所有目錄裡的檔案 shellVariable.sh
更改檔名
shvar="shellVariable.sh"
apple="123.sh"
mv $shvar $apple執行結果 將檔案名稱shellVariable.sh更改成123.sh