Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

directory current in bash

result=${PWD##*/}
echo $result
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #directory #current #bash
ADD COMMENT
Topic
Name
3+5 =