Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含数千个制表符分隔行的 tsv 文件,我需要搜索某人的姓名,然后一遍又一遍地将整行复制到一个单独的文件中。任何人都可以帮忙吗?谢谢!!
问题含糊不清,但这通常应该有效:
grep "some-name" *.tsv > ouput
听起来很简单:
grep "someone's name" tsv-file > separate-file
有什么问题?名称是在一两个字段中吗?中间名首字母?