Re: How to format the command output like MySQL output
On 21.10.2013 01:33, Shawn Wilson wrote:
>
>
> "Lars Noodén" <lars.nooden@gmail.com> wrote:
>> On 20.10.2013 04:17, 陶治江 wrote:
>>> 于 2013-10-20 0:53, Lars Noodén 写道:
>>>> On 19.10.2013 19:35, 陶治江 wrote: [snip]
>>>>> I think it seems good like this, but I do not know how to
>>>>> make out it.(someone says awk, sed may help, but the
>>>>> environment does not permit it). Is there some libs or tools
>>>>> can help make output result good and elegent?
>>>> [snip]
>>>>
>>>> Perl would be the next step up, but if awk is not allowed then
>>>> perl certainly won't be.
>>>>
>>>> Regards, /Lars
>>>
>>> yes, the whole system size a extremely limited, so the only
>>> possible
>> way
>>> is to find a suitable C lib to handle this.
>>>
>>> What a big task!!!!
>>
>> What about the PCRE library?
>>
>> http://www.pcre.org/
>>
>> That's written in C and gives you the power of perl's regular
>> expressions.
>>
>
> We use libpcre in some projects and it might be useful but it does
> not give a perl compatible regex engine. It might have up to perl 4
> regex support but there might even be some missing features there
> too. So no, not the power of perl regex here.
>
Ok. My mistake. I see it in all kinds of package dependencies and
thought it was further along than it was.
Regards,
/Lars
Reply to: