#!/bin/bash
s='123.456.789.01'
s="${s%.*}."
echo "$s"