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

No comments:

Post a Comment