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

anaseismic

antiseismic

aseismic

……

[root@desktop0 findfiles]#