S
S
Sergey Titov2015-09-30 03:29:35
linux
Sergey Titov, 2015-09-30 03:29:35

How to list directories listed in PATH environment variable?

It turns out that through echo $PATH I display this variable, then I need to split the line like /usr/local/example/example into separate words with a slash and output each from a new line, how to implement this? +_+

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-09-30
@Nuboskill

why do you need it?
echo $PATH | tr ":" "\n"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question