SyntaxFix
Write A Post
Hire A Developer
Questions
echo "$PWD" | sed 's!.*/!!'
If you are using Bourne shell or ${PWD##*/} is not available.
${PWD##*/}