Snippets

Leonardo Sebastian De Seta Comandos útiles en Linux

Created by Leonardo De Seta last modified

Buscar archivos que contengan un texto

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

    -r or -R is recursive,
    -n is line number, and
    -w stands for match the whole word.
    -l (lower-case L) can be added to just give the file name of matching files.

Más info: https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.