Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user-de
Navigation:
Lists: gentoo-user-de: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user-de@g.o
From: Robert Welz <welz@...>
Subject: Re: bash Problem Reguläre Au sdrücke
Date: Sun, 07 May 2006 00:56:20 +0200
Jan C. Potthoff wrote:
> Robert Welz wrote:
> 
>> Hallo.
> 
> 
> Moin.
> 
>> Name                              ID Mem(MiB) VCPUs State  Time(s) 
>> Portage-Proxy-DomU                28       75     1 -b----   829.3
>>
>> Die Zeit am Schluss möchte ich in einer Variablen haben. Leider lässt
>>  sich die Ausgabe nicht in ein Array splitten, ich habe es versucht
>> und bin gescheiert.
> 
> 
> zeit=`echo $my_var | grep '^Portage-Proxy-DomU' \
>     | grep -o '[0-9]*\.[0-9]*$'`
> 
> Als erstes fischst Du mit grep die Zeile raus, die mit
> "Portage-Proxy-DomU" beginnt, und aus dieser fischt Du dann die Zeit am
> Ende der Zeile.

Klasse, herzlichen Dank!

Robert



-- 
gentoo-user-de@g.o mailing list


References:
bash Problem Reguläre Ausdrücke
-- Robert Welz
Re: bash Problem Reguläre Au sdrücke
-- Jan C. Potthoff
Navigation:
Lists: gentoo-user-de: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: bash Problem Reguläre Au sdrücke
Next by thread:
Re: bash Problem Reguläre Ausd rücke
Previous by date:
Re: bash Problem Reguläre Au sdrücke
Next by date:
Re: bash Problem Reguläre Ausd rücke


Updated Jun 17, 2009

Summary: Archive of the gentoo-user-de mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.