grep进行多模式过滤

来源:互联网 发布:淘宝手机店铺装修图 编辑:程序博客网 时间:2024/06/05 17:15

最近做分词,需要对stopwords列表进行筛选过滤,加入了一个filterlist.txt,把stopwords.txt.old里面包含filterlist.txt中行的行给过滤掉,生成一个新的stopwords.txt:

grep -v -f filterlist.txt stopwords.txt.old > stopwords.txt
0 0
原创粉丝点击