I use the following command for grep stuff in subdirs
find . | xargs grep -s 's:text'
However, it also finds things like <s:textfield name="sdfsf"...../>
What can I do to avoid this, so it just finds things like <s:text name="sdfsdf"/>
OR, for that matter ... also finds <s:text somethingElse="lkjkj" name="lkkj"
basically s:text and name should be on the same line ....
unix grep
josh May 21 '10 at 1:41 a.m. 2010-05-21 01:41
source share