主题: shell 变量运算

取文件basename:
cz@wlt ~ $ f='/tmp/dir/file.txt'
cz@wlt ~ $ echo ${f##/*/}
file.txt