适用于:bsh,bash,ksh,Perl
操作系统:Unix平台 linux
#!/bin/bash
#file=
if [ `TZ=PST-24 date +%d` = '01' ];then
echo "fuck the world"
fi
#$file
更为简单的linux平台下应用。
if [`date -d tomorrow +%d` = '01'];then
echo "this is cool"
fi
if [`date -d "+1day" +%d` = '01'];then
echo "day of the month"
fi
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16566331/viewspace-670112/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16566331/viewspace-670112/
9856




被折叠的 条评论
为什么被折叠?



