Doubt..

Hi experts,

In one of our code we have used some command like this.

name=${name##*/}

Can someone please let me know what exactly it does?

Thanks & Regards,
Sathya V.

This

name="/this/that/there/file.txt"
echo "${name##*/}"

will return file.txt alone