GNU+Linux command memo

Grep text in selected files

Trouver du texte dans une sélection de fichiers

find "$3" -name "$2" -print0 | xargs -0 grep -i -n --color $1
1 text to search
2 files to find to search in
3 where search to search for files to find
4 find-print0 | xargs -0 … : use zeros to separate elements, not spaces, to accept spaces in file names