Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
linux strip foldder name from path
Dennis Jaheruddin
Programming language:
Shell/Bash
2021-07-10 09:01:24
-2
Q:
linux strip foldder name from path
Bett
Code:
Shell/Bash
2021-02-27 01:11:57
FILE="/home/vivek/lighttpd.tar.gz" basename "$FILE" f="$(basename -- $FILE)" echo "$f"
0
Tags
name
path
linux
Related
remove all files inside directory linux
remove folder and contents linux
remove folder in all sub folders linux command
bash remove directory
linux remove folder and all his content
bash how to remove all whitespace from a file
linux remove lines from file
shell find string in directory
how to remove all files in a directory matching a regex pattern shell
how to remove folder and its contents in linux
linux strip executable
how to erase folder that match characters in linux
remove directory from linux
linux delete files in folders without deleting the folder
New to Communities?
Join the community