查找一個字符串

題:在文件 /usr/share/dict/words 中查找到全部包含字符串 seismic 的行。將找出的行按照原文的前後順序拷貝到 /root/wordlist 文件中。/root/wordlist 文件不要包含空行,而且其中的所 有行的內容都必須是 /usr/share/dict/words 文件中原始行的準確副本html

答:spa

grep ‘seismic’ /usr/share/dict/words > /root/wordlist

 


更多詳情:http://www.cnblogs.com/xiangsikai/p/8284353.htmlcode

相關文章
相關標籤/搜索