@nixCraft Hi.
I love tr but I love pure Bash even more:
IFS=':' read -r -a path_parts <<< "$PATH"; printf '%s\n' "${path_parts[@]}"
By the way, get ready for every opinionated sysadmin to post here, we are wired that way :-D
Thanks for sharing.
@nixCraft Hi.
I love tr but I love pure Bash even more:
IFS=':' read -r -a path_parts <<< "$PATH"; printf '%s\n' "${path_parts[@]}"
By the way, get ready for every opinionated sysadmin to post here, we are wired that way :-D
Thanks for sharing.