find结合grep模糊匹配文件搜索关键字
不知道哪个单词在哪个文件里面可以使用这种方法
[[email protected] window_books]# find . -name "*txt" -type f | xargs grep "description" ./2013_liuyinan_5500_words_21-32.txt:1309 description ?????????????? n. 描写,形容;种类 ion-名词后缀 ./2013_liuyinan_5500_words_total_111-122.txt:1309 description ?????????????? n. 描写,形容;种类 ion-名词后缀 ./oldboy_computer_words_1700.txt:649. description n. 描述 (dei si ke pe sheng) ./oldboy_computer_englishwords_1700.txt:description ./2013_liuyinan_5500_words_total_111-122_(2).txt:1309 description ?????????????? n. 描写,形容;种类 ion-名词后缀 ./total.txt:1309 description ?????????????? n. 描写,形容;种类 ion-名词后缀 ./cmpt.words.txt:description ./cmpt.words2.txt:description [[email protected] window_books]#
原文地址:https://www.cnblogs.com/wang618/p/12195954.html
时间: 2024-11-06 17:20:36