unix grep

Hola, solicito ayuda para procesar un archivo de texto como el siguiente y luego obtener las variables.

archivo.txt:

Sending 5, 100-byte ICMP Echos to 10.249.98.94, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/33/44 ms

Variables a obtener:

VAR1=10.249.98.94
VAR2=28
VAR3=33
VAR4=44

Muchas gracias de antemano.

En ingl�s, por favor.

file=archivo.txt
{
 read a b c d e f g h
 IFS='=' read a b c
} < "$file"
VAR1=${g%,}
set -- $b
var=$1
IFS=/ read VAR2 VAR3 VAR4 <<.
$var
.

Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.

sorry.
HI, need some help to proccess a textfile like this and then to obtain the variables:

textfile.txt
----------
Sending 5, 100-byte ICMP Echos to 10.249.98.94, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/33/44 ms

Variables to obtain:
-------------------

VAR1=10.249.98.94
VAR2=28
VAR3=33
VAR4=44

Thanks.

---------- Post updated at 04:28 PM ---------- Previous update was at 03:45 PM ----------

Thanks but i need to obtain 4 variables from the textfile
VAR1= 10.249.98.94 <--- the ip address
VAR2= 28 <--- min time in ms
VAR3= 33 <--- avg time in ms
VAR4= 44 <--- max time in ms

... or i dont understand u

That's what the script I posted does. Did you try it?

Add this line to see the results:

printf "%s\n" "VAR1=$VAR1" "VAR2=$VAR2" "VAR3=$VAR3" "VAR4=$VAR4"

Great! It is just that I need.
Thank u very much cfajohnson