Get file extension in Shell script

Simple way to get file extension:
F=MyText.txt
echo ${F#*.}

 
  1. martinrichards posted this
Blog comments powered by Disqus