Use variables in the script file (get the current time, used to generate a folder)


data_cur = $(date +%Y%m%d%k)  

mkdir path/$date_cur


Notice:

Instead of directly using data_cur = 'date +%Y%m%d%k'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325596206&siteId=291194637