Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
get first directory in path environment variable
Derptastic
Programming language:
Whatever
2021-07-21 00:05:31
0
Q:
get first directory in path environment variable
user82204
Code:
Whatever
2021-08-04 08:29:00
echo ${PATH%%:*}
0
Tags
path
get
variable
first
var
Related
get first path in path env variable
bash get current path
pathlib path get directory of current file
how to use location.pathname
pathlib path of current file
New to Communities?
Join the community