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.
如何确定文件中具有两个或多个“;”的行 linux cmd中一行的符号?
谢谢,爸
使用grep:
grep
grep '.*;.*;' filename
这将打印至少包含 2 的行;。
;
其实,这就够了:
grep ';.*;' filename