Shell学习笔记---date_pratice.sh
生活随笔
收集整理的這篇文章主要介紹了
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?
如有錯誤,歡迎指正?
郵箱:czmcj@163.com?
總結
以上是生活随笔為你收集整理的Shell学习笔记---date_pratice.sh的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 猜猜我是谁
- 下一篇: 哔哩哔哩老显示服务器中断,哔哩哔哩服务器