摘要:
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.[ 阅读全文