一个处理文件的样例:
${path} = /home/fuzl/book/long.file.name
${path##/*/} = long.file.name
${path#/*/} = fuzl/book/long.file.name
${path%%.*} = /home/fuzl/book/long
${path%.*} = /home/fuzl/book/long.file
原文地址:http://www.cnblogs.com/jeanhwea/p/3794719.html