Posted By

bethjt1220 on 05/24/11


Tagged


Versions (?)

Bash Print Path


 / Published in: Bash
 

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

  1. function path(){
  2. old=$IFS
  3. IFS=:
  4. printf "%s\n" $PATH
  5. IFS=$old
  6. }

Report this snippet  

You need to login to post a comment.