Cautare in fisiere cu find pe linux

Poate are cineva nevoie 🙂

find {path} {file type} | xargs grep '{string}' -sl



{path} – puteti folosi calea absoluta a folderului unde vreti sa faceti cautarea ( ex: /home/texx/public_html/site1/ )

{file type} – nume, tip fisier

{string} – textul cautat


find ./ *.php | xargs grep 'FrontController' -sl

This entry was posted in Diverse, IT and tagged , , . Bookmark the permalink.

Lasa un comentariu

This site uses Akismet to reduce spam. Learn how your comment data is processed.