Insert date question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Austin Godber
日付:  
題目: Insert date question
Kevin Brown wrote:
> cp file file_`date +%Y%m%d`.old
> vi file


If you find:
date +%Y%m%d
to be too strangelooking you can use:
date -I

the difference is 20040204 vs 2004-02-04

date -I == date +%Y-%m-%d

Austin