Subversion Repositories Projects

Rev

Rev 96 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
96 dhylands 1
#!/bin/sh
2
#
3
# This script prints out your PATH, one subdirectory per line.
4
#
5
 
6
IFS=:
7
 
8
RED="\033[1;31m"
9
GREEN="\033[1;32m"
10
NO_COLOR="\033[0m"
11
 
12
 
13
for dir in ${PATH}
14
do
15
   if [ -d ${dir} ]
16
   then
17
      echo -e "${GREEN}${dir}${NO_COLOR}"
18
   else
19
      echo -e "${RED}${dir}${NO_COLOR} - doesn't exist"
20
   fi
21
done
22