You can use bash script with awk command and pwd.
pwd | awk '{n=split($1,A,"/"); print A[n]}'
Cheatsheet collection for go, rust, python, shell and javascript.
You can use bash script with awk command and pwd.
pwd | awk '{n=split($1,A,"/"); print A[n]}'