《问》How to display the paths in $PATH separately

《问》

How to display the paths in $PATH separately

COMMAND

echo "${PATH//:/$'\n'}"

OUTPUT

/bin
/usr/bin
/usr/local/bin


Comments

Popular posts from this blog

英语口语

Ruby语言经典代码讲座:单态类(Singleton Class)