https://tldp.org/LDP/abs/html/string-manipulation.html > file_name=/app/xxx/yyy/zzz.20210915 > echo echo ${file_name:0-8} 20210915