天天看點

Rhel7 grep在檔案中查找指定的字元串,将其輸出到指定檔案

Rhel7 grep在檔案中查找指定的字元串,将其輸出到指定檔案

[root@desktop0 findfiles]# cat /usr/share/dict/words |grep seismic

anaseismic

antiseismic

aseismic

……

[root@desktop0 findfiles]# cat /usr/share/dict/words |grep seismic >>/root/wordlist

[root@desktop0 findfiles]# cat /root/wordlist

[root@desktop0 findfiles]#

      本文轉自810105851 51CTO部落格,原文連結:http://blog.51cto.com/4708948/1701913,如需轉載請自行聯系原作者

繼續閱讀