Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Wednesday, July 2, 2008

The Easy PATH

To format one's PATH variable for easy viewing, try this function:
==============

path()
{
oldIFS=$IFS
IFS=:
printf "%s\n" $PATH
IFS=$oldIFS
}

==============

A typical run of the function:
$ path
/bin
/usr/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/local/bin
/home/sanju/bin
/home/sanju/scripts