Re: .sh & ip address

2010-06-22 Thread George Davidovich
On Wed, Jun 23, 2010 at 10:31:51AM +0800, Aiza wrote: > I looking to take the last group number in a ip address and bump the > number by 1. BY the way is there some name for each group of numbers in > the ip address? Octet. > Something like. > > org_ip="10.0.10.2" > short_ip=need command to st

Re: .sh & ip address

2010-06-22 Thread Olivier Nicole
Hi, > I looking to take the last group number in a ip address I would do that with cut(1), setting the dot as the feild delimiter. bests, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questio

.sh & ip address

2010-06-22 Thread Aiza
I looking to take the last group number in a ip address and bump the number by 1. BY the way is there some name for each group of numbers in the ip address? Something like. org_ip="10.0.10.2" short_ip=need command to strip off the 2 so short_ip contains 10.0.10. and ip_suffix= ends up holding t