https://www.tomek.cedro.info/bash-filename-and-extenstion-extraction/
bash filename and extenstion extraction