grep tips

compared with
Current by Kees de Kooter
on Sep 03, 2008 10:09.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
find . -exec grep -q "some text" '{}' \; -print
{noformat}

Find all files containing {{<fmt:message/>}} tags and return the tag content:
{noformat}
find -name *.jsp -exec grep -o "fmt:message key=\"\([a-z\.]*\)\"" '{}' \;
{noformat}