Re: utilities
Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
Wim Niemans ri wrote: > I' searching for an util to cut a php-library into separate pieces: one > piece (file) per function. Probably leaving main as is. > Does any body know of such a thingie? No. With some bash tools it should be possible: // see the list of line numbers containing 'function': grep -n function MyFile.php |cut -d : -f 1 56 76 89 // get first part of the file head -n 55 MyFile.php // get lenght of file wc -l MyFile.php 356 // get last part of the file cut -n 301 MyFile.php Build your tool now :-) -- Jean-Christophe Michel