fileName=’/path/to/testfile.ext'
ext=${fileName/*./}
echo “Extension: $ext”