Razvan Stoica wrote:
> Salut!
hi.
> Stie careva cum se face in BASH extragerea unei parti dintr-un string?
da.
folosing awk + cut
> Stringul este de forma: rtt min/avg/max/mdev = 128.041/129.827/131.214/1.389 
> ms
> Ma intereseaza sa scot valoarea medie (in cazul asta: 129.827).
ex. ping google.ro -c 3 | grep -i avg | awk {'print $4}' | cut -c 9-15
> In Java se face folosind clasa StringTokenizer. Exista ceva in genul asta
> si in BASH?

..........................................................................
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
fordelivery of the message to such person), you may not copy or deliver 
this message to anyone. In such a case, you should destroy this message 
and kindly notify the sender by reply e-mail.


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui