摘自:《Linux shell 脚本攻略》Page61-62
Linux shell 脚本攻略之根据扩展名切分文件名
原文:http://www.cnblogs.com/pengdonglin137/p/3524951.html