我echo是因为我不想改我系统上的日期。。作者: mmh 时间: 2008-11-05 11:34
for((i=1;i<=60;i++));do "date -s $(date +%Y%m%d -d "-$i day")";done
去掉echo的话就报错了,怎么会报这种错误?
-bash: date -s 20081104: command not found
-bash: date -s 20081103: command not found
-bash: date -s 20081102: command not found
-bash: date -s 20081101: command not found
-bash: date -s 20081031: command not found
-bash: date -s 20081030: command not found
-bash: date -s 20081029: command not found
-bash: date -s 20081028: command not found
-bash: date -s 20081027: command not found
-bash: date -s 20081026: command not found
-bash: date -s 20081025: command not found
-bash: date -s 20081024: command not found
-bash: date -s 20081023: command not found
-bash: date -s 20081022: command not found作者: mmh 时间: 2008-11-05 12:47
为什么会出现这么错误呢,难到真的没有人干过这种事情???