[prev in list] [next in list] [prev in thread] [next in thread]
List: binarycloud-dev
Subject: Re: [binarycloud-dev] utilities
From: Jean-Christophe Michel <jc.michel () symetrie ! com>
Date: 2005-02-17 13:46:43
Message-ID: 4214A043.7020806 () symetrie ! com
[Download RAW message or body]
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@binarycloud.tigris.org
For additional commands, e-mail: dev-help@binarycloud.tigris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic