Skip to content
  • xargs provides better performances than exec because it does not spawn a new process for each file :

    find  /starting/path -type f -print0 | xargs -0 grep -H 'chaine'

    -print0 and 0 tells find and xargs to use null a a separator which is more robust than space.

  • Thanks for the advice. I also modified the other command using 'find'.

0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment