Need suggestions for parsing a shell variable
Hello,
I need some suggestions. I have a script that will ask the user for an ip address, which is entered by keyboard
ie: echo "What is your IP?"
read IPADDRESS
I then need to parse the IP address for the number in its 4th octet and store it to a another varilable. For example, if my IP is 192.168.128.4, I need to store the value 4 in a variable.
Cheers,
and thanks for any help offered!
|