Answers for "linux strip foldder name from path"

0

linux strip foldder name from path

FILE="/home/vivek/lighttpd.tar.gz"
basename "$FILE"
f="$(basename -- $FILE)"
echo "$f"
Posted by: Guest on August-15-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language