How do I combine two grep commands in Linux?

Đăng Khánh

New member
How do I combine two grep commands in Linux?
Answer
Use a single arrow the first time and double arrows subsequent times to append to the file. The first two grep commands print just the line with the match and the last one prints the line and one line after.
 

Tìm kiếm

Back
Top