定义当前日期为变量值
时间:2006-12-12 来源:wangbinde
#!/bin/bash
#create date variable
date>date.txt
awk '{print $2$3}' date.txt>date1.txt
read date<date1.txt
tar czvf ${date}.tar.gz date.txt
#create date variable
date>date.txt
awk '{print $2$3}' date.txt>date1.txt
read date<date1.txt
tar czvf ${date}.tar.gz date.txt
相关阅读 更多 +