#!/usr/app/TurboShell/bin/bash
path=photos/Holiday-2027.JPG
file=${path##*/}
echo "file: $file"
echo "folder: ${path%/*}"
echo "ending: ${file##*.}"
echo "without ending: ${file%.*}"
echo "length: ${#file}"
echo "first 7: ${file:0:7}"
echo "small: ${file,,}"
echo "replaced: ${file/2027/2028}"
echo "default: ${missing:-nothing here}"
