Trusted Contributor Trusted Contributor
Re: not getting these variable values ${0##*/} and ${0%/*}
Thanks Partick and Dennis,

so it means if it use the same to $1 variable, then it will provide the DIR and NAME value for that script executed...correct?

e.g. typeset value=$1
typeset file=${1##*/}

It will give me the value of the file name i will be entering at $1 variable...got it.

But how do i get details about these symbols like ##*/ or %/* as one counts for file name and other for directory name. Are there other symbols like these and how can i get all those symbols so that i can use them also???

Much Thanks for your reply.