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.
我需要从 csv 文件中的各种 ISP 中删除所有电子邮件。当它们分散在整个文件中时,我该如何处理?
嘿,如果您知道要删除的电子邮件,可以这样做:
sed 's/email@mail1.com\|email@mail2.com\|email@mail3.com//g' yourfile.csv > newfile.csv
我们可以!
sed '/@mail.com/d' yourfile.csv > newfile.csv