Tuesday, January 22, 2013

Linux - Commands for Grep or Search recursively

Below are the commands for -

Grep for a particular text recursively

find ./ -name "*" | xargs grep "text" {} 2>/dev/null

Search for a particular file recursively

find ./ -name "*.properties" 2>/dev/null

1 comment:

  1. Signature loans might be accustomed to fund student college loans,
    home remodeling, consolidation, etc quick loans there virtue
    merit, born western nothing is difficult.
    My website: quick loans