經安全檢測,此網站為安全網站,請放心前往原始網址!

Linux Shell Script - how to split string into variables?

easy :) Let's assume your variable for the ping response line is called $PINGRESPONSE export PINGRESPONSE="64 bytes from 172.28.65.253: icmp_seq=1 ttl=128 time=0.221 ms" this is how you'd get the info you want out of it using standard linux/unix commands:

answers.yahoo.com

網址安全性掃描由 google 提供