Parsing and Printing $PATH Using Unix
awk, parsing, path, unix
Solution
Yet another way:
echo $PATH | tr : '\n'
or:
tr : '\n' <Path.txt
Problem
I've placed my PATH in a text file and would like to print each path on a newline using a simple command in UNIX. I've found a long way to do it that goes like this... ``` cat Path.txt | awk -F\; '{print $1"\n", $2"\n", ... }' ``` This however seems inefficient so I know there must be a way to quickly print out my results on new lines each time without having to manually call each field separated by the delimiter.