Rhel7 grep在文件中查找指定的字符串,将其输出到指定文件
[[email protected] findfiles]# cat /usr/share/dict/words |grep seismic
anaseismic
antiseismic
aseismic
……
[[email protected] findfiles]# cat /usr/share/dict/words |grep seismic >>/root/wordlist
[[email protected] findfiles]# cat /root/wordlist
anaseismic
antiseismic
aseismic
……
[[email protected] findfiles]#
时间: 2024-10-26 23:08:59