批踢踢實業坊
›
精華區
beta
FreeBSD
關於我們
聯絡資訊
返回上層
發信人
[email protected]
(I saw the hell),
看板
FreeBSD
標 題
Re: 請問一個shell script
發信站
師大計中(精靈之城) (Thu Sep 26 09:46:28 2002)
轉信站
Ptt!news.ntu!ctu-gate!news.nctu!news.ntnu!elfBBS
※ 引述《
[email protected]
(尋找我的最愛)》之銘言:
> 請問一下...
> 如何用shell script自動抓系統下的 年、月、日 分別儲於 三個不同變數中
> 謝謝...
#!/bin/sh YY=`date +%Y` MM=`date +%m` DD=`date +%d` --
※ Origin: 精靈之城<bbs.ntnu.edu.tw> ◆ From: 61-218-90-43.HINET-IP.hinet.net