22 May
2000
22 May
'00
12:29
Hallo, Andre Best wrote:
und wie kann ich das Ergebnis von
ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"
in eine Variable schreiben ? m= ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from" funktioniert nicht!?
m=$(ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from") oder m=`ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"` Damit übergibst Du der Variable m das Ergebnis des in `...` oder $(...) eingeschachtelten Befehls. Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com