我过去成功地使用过 egrep,通常使用以下
egrep -f list_of_patterns big_file_to_look_for_patterns > selected_patterns_from_big_file
然而,我今天早上一直在尝试做同样的事情,但我不断地将所有内容作为输出 -> 不仅是我通过列表提供的模式,还有我正在查看的整个文件
文件可以在这里找到:https : //filebin.net/ibovbjy68x4a8kez
模式列表:“allMAGs_list_85_5_list”
big_file_to_look_for_patterns: "goodfile"
根据之前有类似 grep 问题的人的帖子,我试图tr '\r' '\n'
消除马车,但这并没有帮助......
提前致谢
grep ×1