megacolorboy

Back

Published on May 25th, 2020

Terminal

Find files containing specific text

This helped me a lot whenever I'm in a remote server trying to find a keyword or specific text amongst a bunch of files.This command will save you a lot of time: stands for recursion displays the line number matches the whole wordRefer to pages for more info.

1 minute read

This helped me a lot whenever I'm in a remote server trying to find a keyword or specific text amongst a bunch of files.

This command will save you a lot of time:


grep -rwn [path] -e 'pattern'

Refer to man find pages for more info.