Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux strip foldder name from path

FILE="/home/vivek/lighttpd.tar.gz"
basename "$FILE"
f="$(basename -- $FILE)"
echo "$f"
Comment

PREVIOUS NEXT
Code Example
Shell :: install docker ec2 
Shell :: git ignore for dart 
Shell :: git clone commit hash 
Shell :: remove composer package 
Shell :: undo previous commit locally 
Shell :: undo merge 
Shell :: change flutter package name 
Shell :: download post man in linux 
Shell :: import csv into mongodb 
Shell :: ubuntu delete contents of folder 
Shell :: Could not resolve HEAD to a revision 
Shell :: docker build 
Shell :: ubuntu create directory with permissions 
Shell :: anaconda install package with version 
Shell :: how to set global github username and password in git 
Shell :: how to reset and change remote url in git 
Shell :: dotnet format install 
Shell :: check how many container running or not running in docker 
Shell :: laravel 4 installer 
Shell :: docker install python 
Shell :: git change rebase to merge 
Shell :: Something is already running on port 3000. Probably: 
Shell :: wsl2 settings 
Shell :: scp local to remote 
Shell :: install rest framework django command ubuntu 
Shell :: Powershell TLS 
Shell :: ssh key generation 
Shell :: Using git reset to Undo a Merge 
Shell :: kubectl get namespaces 
Shell :: mac see current path 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =