Linux Shell Script - how to split string into variables?

Linux Shell Script - how to split string into variables?

瀏覽:1315
日期:2025-04-26
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:...看更多