Shell学习笔记---date_pratice.sh

声明:本文仅作学习研究使用,多数语句都是为了介绍语法而构造的。

一个简单的date用法练习脚本!!!!!!

#!/bin/bash

#Filename:date_practice.sh

# Datetime:2010_12_23 18:32

#Discription:Practise of using command date

echo "The number of day since the year's begining is `date +%j`."

echo "The number of seconds elapsed since 01/01/1970 is `date +%s`."

prefix=temp

suffix=$(date +%s)

filename=$prefix.$suffix

echo $filename

exit 0

 

参考至:http://club.topsage.com/viewthread.php?tid=668357&highlight=shell

如有错误,欢迎指正

邮箱:[email protected]

你可能感兴趣的:(PHP,脚本,J#,bash)