The command to find any specific word in a linux file and in which line

grep -rnw '/path/to/somewhere/' -e 'pattern'

info site

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment