linux中read用法
摘要:
read在while中的经常用法: 1 root@ubuntu:/var/lib/logrotate 10:53:05 118# cat /etc/cron.daily/logrotate 2 #!/bin/sh 3 4 # Clean non existent log file entries from status file 5 cd /var/lib/logrotate 6 test -e status || touch status 7 head -1 status > status.clean 8 sed 's/"//g' status | while 阅读全文
posted @ 2013-07-21 22:11 yi_meng 阅读(964) 评论(0) 推荐(0) 编辑