Say there are different files,
script.sh
text.txt
pic_1.png
or files with no extension - 'hello'. How can you extract the last character of base file name? ie,
script. sh - t
text.txt - t
pic_1.png - p
hello - o
Is there like a simple way to do it?
pic_1.png - p
example makes no sense within the scope of the question – techraf Nov 22 '16 at 03:35