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.
我有两个文件,其中名称可能不同,但出生日期和性别相同:
Wheadon,Chris,4/17/1997,M
和
Wheadon,Christopher Brian,4/17/1997,M,52,40
如果我想使用姓氏、第一个文件中给出的名字(示例中为 Chris)以及性别和出生日期来提取匹配项,我将如何使用 grep 执行此操作?