linux shell script as a variable path

! # / bin / SH 

echo  " scname: $ 0 "    # document name
 echo  " first_para: $ 1 "    # passed in the first parameter
 echo  " second_para: $ 2 "   # passed in the second parameter 


PRO_PATH = " / Home / YK / QtPro / ShowTime "   # address program path
 echo $ # PRO_PATH print path 
cd $ PRO_PATH # switching paths 
. / ShowTime $ . 1   # executes the program, with parameters

 

Guess you like

Origin www.cnblogs.com/mathyk/p/10943866.html