摘要: 1.搜索特定字符串[root@localhost ~]# grep 'the' anaconda-ks.cfg (在anaconda-ks.cfg中查找包含the的行)[root@localhost ~]# grep -n 'the' anaconda-ks.cfg (-n显示行号)反选,即不包含the的行[root@localhost ~]# grep -vn 'the' anaconda-ks.cfg取得不分大小写的the[root@localhost ~]# grep -in 'the' anaconda-ks.cfg2.[ 阅读全文
posted @ 2013-04-10 17:11 冬之夜 阅读(160) 评论(0) 推荐(0) 编辑