例子1:

[root@localhostopt]#cata.sh#!/bin/bashsource/opt/b.txtaa=${!1}echo$aa[root@localhostopt]#catb.txtabc=1[root@localhostopt]#sha.shabc1


例子2:

[root@localhostopt]#cata.sh#!/bin/basha=1b=aecho${b}echo${!b}evalecho\$$b[root@localhostopt]#sha.sha11


获取前一天时间

date-d-1day+%Y%m%d