#!/bin/bash

echo "aaa.bb.c" | grep -o '[^.]*$'
# c