Grep with surrounding lines
Yesterday I wanted to find a maven dependency in my project, that itself depended on another dependency, which had a security issue and needed updating. The command mvn dependency:tree displays the whole dependency tree, but in a large project it takes a while to find what you're looking for. So I grepped the result mvn dependency:tree | grep "<name>" which confirmed the dependency was… [read more →]