bash grep finding java declarations
- by Amarsh
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 "