How to paras such echo string effection?
limodou
limodou at gmail.com
Tue Oct 17 03:48:35 EDT 2006
On 10/17/06, Kevien Lee <ironpythonster at gmail.com> wrote:
> Hi everyone,
>
> When i decide to paras a string,which return from running a CVS command,it's
> amaze that i want to get some file of the echo string ,how to make paras
> process more effect?
>
> the problem detail as follow that:
>
> run command:"cvs status -r" it will return all the file list in as follow?
>
>
>
> ===================================================================
> File: file01.xls Status: Up-to-date
>
> Working revision: 1.1
> Repository revision: 1.1 /msg/file01.xls,v
> Sticky Tag: (none)
> Sticky Date: (none)
> Sticky Options: -kb
>
> cvs status: Examining 20060815
> ===================================================================
> File: file02.xls Status: Up-to-date
>
> Working revision: 1.1
> Repository revision:/msg/file02.xls ,v
> Sticky Tag: (none)
> Sticky Date: (none)
> Sticky Options: -kb
>
> cvs status: Examining 20060816
> ===================================================================
>
>
> Now ,i just what to know the file of "Status",if paras all should be
>
> coast expenses,is there any effect way?
>
> PS:is there any python lib for CVS ?
>
>
I think you can use regular expression to match the Status. Or simple
find 'File' and 'Status' substring, and get the result.
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
More information about the Python-list
mailing list