linux中用shell获取昨天、明天或多天前的日期:
在Linux中对man date -d 参数说的比较模糊,以下举例进一步说明:
# -d, --date=STRING display time described by STRING, not `now’
[root@Gman root]# date -d next-day +%Y%m%d #明天日期
20091024
[root@Gman
...
下载并打补丁
cd /root/
wget http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar zxvf bash-4.2.tar.gz
mkir patch;cd patch
wget -r -nd -np http://ftp.gnu.org/gnu/bash/bash-4.2-patches/
cd /root/bash-4.2
for p i
...
最新评论