BASH: pretty $PATH
-
echo $PATH | tr : \\n
-
echo $PATH | sed '#:#\n#g'
-
echo $PATH | awk 'BEGIN{RS=":"}{print}'
-
echo $PATH | awk '{gsub(/:/,"\n");print}'
-
IFS=: read -ra entries <<< "$PATH" for entry in "${entries[@]}"; do echo $entry done