How to get rid of the last period (.)

Hello,
I'm able to trim down the log message to "192.168.1.0.", but can't get rid off the last period.
Can any one help me on the syntax to get rid of the last period?

Basically, I want "192.168.1.0" instead of "192.168.1.0."

Thanks,

A possible solution :

sed 's/\.$//' inputfile > outputfile

Show us an example of log message.

Jean-Pierre.

This is a sample of log:
Aug 25 13:23:56 ftwslipmp002 /apps../dhcpd[8092]: [ID 985565 user.warning] No DHCP lease available to offer from subnet 172.22.231.0.

This is what I did to get the IP address:
/usr/bin/egrep -e "`date -u +"%b %e"`" /var/adm/qip | grep DHCP | egrep -v -e "Bad packet" | grep -v DHCP_ | grep No | /usr/bin/awk '{print $17}' | sed 's/\.$//'

The result is: 172.22.231.0

Thanks for your help.

simply you can use..

Or

awk '{ sub(/\.$/, ""); print $NF }' logfile

Jean-Pierre.