Code Golf: File extension

Run Settings
LanguageBash
Language Version
Run Command
t(){ echo ${1##*.};} for f in hi.txt carrot.meme lol what..is..this..file \ .bashrc T00M@n3KaPZ.h0wC[]h agent.000; do printf '%s -> %s\n' "$f" "$(t "$f")" done
Editor Settings
Theme
Key bindings
Full width
Lines