2013年10月12日

linux的一些基本命令

摘要: 1、date:print or set the system date and time (1)指定输出内容及形式: date +%Y-%m-%d:2013-10-12,以指定形式打印当前的日期。 date +%F:2013-10-12,打印当前日期;date +%T:13:32:44,打印当前时间 阅读全文

posted @ 2013-10-12 15:33 han'er 阅读(469) 评论(0) 推荐(0)

Linux shell编程

摘要: 1、按行读取文件内容: 方法1):while read linedo echo $linedone testfileThese sentences will be printed in testfile.`date +%Y%m%d`END_TEXT 3)here文档与shell函数:... 阅读全文

posted @ 2013-10-12 11:03 han'er 阅读(320) 评论(0) 推荐(0)

导航