bash grep finding java declarations
Posted
by Amarsh
on Stack Overflow
See other posts from Stack Overflow
or by Amarsh
Published on 2010-05-21T01:56:20Z
Indexed on
2010/05/21
2:00 UTC
Read the original article
Hit count: 295
i have a huge .java file and i want to find all declared objects given the className. i think the declaration will always have the following signature:
className objName;
or
className objName =
or
className objName=
can someone suggest me a grep pattern which will find these signatures. I have the following (incomplete) :
cat $rootFile | grep "$className "
© Stack Overflow or respective owner