RedHat Linux 8 中shell的文本處理工具

grep 文本過濾工具 命令格式:grep 匹配條件 處理文件 命令操作: grep root /etc/passwd ,過濾包含root關鍵字的內容 grep ^root /etc/passwd ,以root開頭的內容 grep bash$ /etc/passwd ,以bash結尾 grep -i root /etc/passwd ,後略大小寫,文件裏暫時沒有大寫的root grep -iE 「
相關文章
相關標籤/搜索