Find Kategoria: Linux | Tagi: bash | Autor: Bartłomiej Gałęzia

find . -name '*.*' -type f -print0 | xargs -0 grep -l "phrase"

Można też dodać skróconą formę tego polecenia w .bashrc

vim ~/.bashrc
findtext() {
    find . -name '*.*' -type f -print0 | xargs -0 grep -l "$*"    
}

Dodaj komentarz

Brak komentarzy, bądź pierwszy i dodaj swój komentarz