I have a bash script as below, and I want it to read two dates as parameters, for example: myshell date1 date2
. How do I assign parameters to variables date1
and date2
?
sed "s/$date1/$date2/g" wlacd_stat.xml >tmp.xml
mv tmp.xml wlacd_stat.xml
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…