Oops! Only works from 1902 to 2038 (with some modification)! So using date is not a good idea...But how to parse string using shell script? Perl would be a lot easier but usually it is not considered a shell...

dennis2 (Dennis)
(#127200@0)
2001-7-10 -05:00

回到话题: I came across this post in chinasmile. Nobody has answered his question yet. I couldn't figure out a way to do it with shell scripts, although

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=127200