Re: was aus einem String filtern??

From: Rocco Rutte <pdmef(at)gmx.net>
Date: Wed, 19 Mar 2003 21:02:18 +0100

Hi,

* Gösta Steen [03-03-19 20:35:15 +0100] wrote:
> ich würde gerne was aus dieser Zeile rausfiltern

> wort1;wort2;wort3;wort4;wort5

> und zwar soll es z.B. wort3 als antwort geben.

"z.B."?

Nun, zum Beispiel:

 $ echo "wort1;wort2;wort3;wort4;wort5" | awk -F ";" '{print $3}'
 wort3

HTH,
   bye, Rocco

-- 
:wq!
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 19 Mar 2003 - 21:02:45 CET

search this site