[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RegEx Frage...



* On 29.08. Dirk Pirschel (dirk@pirschel.de) muttered:

> * Michelle Konzack wrote on Sun, 29 Aug 2004 at 19:42 +0200:
> 
> > 6 days,  2:00,  7 users,  load average: 0.05, 0.07, 0.05
> > 
> > aber wie werde ich jetzt den schwanz ab dem zweiten Komma los ?
> 
> Das geht auch ohne reguläre Ausdrücke.  Einfach ein "cut -d , -f 1-2".

Also komplett ohne regex:

uptime | cut -d' ' -f4- | cut -d',' -f1

Gruß
Til



Reply to: