Bash Print Path

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

Prints path with each directory on a new line.

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


RSS Icon Subscribe to comments

You need to login to post a comment.