how to grep all lines which contains "abc" and "xyz" in console?

已回答

if a line "789423abc dfajltgjklagklatklg;a xyz126456" is outputed in Alt+4 console, what is the right expression to grep this line and not to grep line "abcfldajjtl"(since there is no "xyz") and line "ldjafkljtlxyz" (no "abc")?

 

Thanks a lot.

 

0

You can use regexp for that, for example using negative look-arounds https://stackoverflow.com/a/406408/8203759

0

请先登录再写评论。