摘要: while read line 与for循环的区别 ---转载整理while read line 是一次性将文件信息读入并赋值给变量line ,while中使用重定向机制,文件中的所有信息都被读入并重定向给了整个... 阅读全文
posted @ 2017-10-15 22:09 cn_wk 阅读(106) 评论(0) 推荐(0)
摘要: cut echo "x:xx:xxx" | cut -d ":" -f 2uniqcat file0 | sort | uniqawkecho "x:xx:xxx" | awk -F ":" '{for(i=1;... 阅读全文
posted @ 2017-10-15 21:53 cn_wk 阅读(32) 评论(0) 推荐(0)