Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux strip foldder name from path

FILE="/home/vivek/lighttpd.tar.gz"
basename "$FILE"
f="$(basename -- $FILE)"
echo "$f"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #linux #strip #foldder #path
ADD COMMENT
Topic
Name
4+6 =