1) I need a command which recursively scans a directory tree and collates each PHP scripts source and sends to screen:
Code: Select all
cat | find ./opt/lampp/htdocs/2) Something similar to the above except I wish to extract strictly the class and function signatures. Basically:
Code: Select all
class MyBase extends MyChild{Code: Select all
function someMethod($p1, $p2){Code: Select all
grep --recursive -n '[(^class(\w)+a-zA-Z(\w)+{)|(^function(\w)+a-zA-Z(\w)+{)]' /opt/lampp/htdocs/rapidcourier/*I'd love to get these working, so any help is appreciated.
Cheers