Posts by josevnz@fosstodon.org
(DIR) Post #B4HRy2l9pS59zJ9a5o by josevnz@fosstodon.org
0 likes, 0 repeats
@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.
(DIR) Post #B4JGUlYtyp4x4ZB5SC by josevnz@fosstodon.org
1 likes, 0 repeats
@lanodan @JdeBP Oh yeah, I forgot about the Bash regex substitution. Yeah, this is the best solution.