查找字符串
查找文件
/usr/share/xml/iso-codes/iso_639_3.xml中包含字符串ng的所有行。将所有这些行的副本按原始顺序放在文件/root/list中。/root/list不得包含空行,且所有行必须是/usr/share/xml/iso-codes/iso_639_3.xml中原始行的确切副本。
1  | [root@node1 ~]# grep ng /usr/share/xml/iso-codes/iso_639_3.xml > /root/list  |