Skip to content

How do i get the folder name from toxinidir (full path) variable? #2963

Answered by jugmac00
abhinav-badola asked this question in Q&A
Discussion options

You must be logged in to vote

I think you could also wrap your command in a bashfile and there you can use basename to get the directory name.

❯ basename /home/jugmac00
jugmac00

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@abhinav-badola
Comment options

Answer selected by abhinav-badola
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants