《问》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语言专用工具讲座:Exerb

《问》What are the differences between more and less?