Bash Print Path


/ Published in: Bash
Save to your folder(s)

Prints path with each directory on a new line.
Source: http://www.cyberciti.biz/faq/howto-print-path-variable/


Copy this code and paste it in your HTML
  1. function path(){
  2. old=$IFS
  3. IFS=:
  4. printf "%s\n" $PATH
  5. IFS=$old
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.