$ ./guess_the_languageProgramming Languages
Programming Languages · medium · #602

Which programming language is this?

file="/var/log/app/error.log"
echo "${file##*/}"
echo "${file%/*}"
echo "${file^^}"

Answer: Bash

Parameter expansions ${file##*/}, ${file%/*} and the ${file^^} upper-case operator are Bash.
Play Programming Languages ▸