LoginSignup
5
5

More than 5 years have passed since last update.

PATHを1行ずつ表示

Last updated at Posted at 2014-08-11

環境変数PATHの要素を 1行ずつ表示したい。(2014-08-11)

echo $PATH | awk 'BEGIN{FS=":"}{for(i=1;i<=NF;i++) {print $i};}'
5
5
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5