Friday, December 9, 2011

How to get the fine name from a start path

s="/users/home/test.txt"
echo ${s##*/}
RESULT :: text.txt

No comments:

Post a Comment