#!/bin/ksh #List directories in blue using the vt100 terminal excape sequences. esc=`echo '\033'` #the escape character b="$esc[34m" #begin blue e="$esc[0m" #end blue #\1 is the first 54 characters on each line that starts with d. #\2 is the name of the directory. #Surround the name of the directory with "begin blue" and "end blue". /bin/ls -l $* | sed 's/^\(d.\{53\}\)\(.*\)/\1'$b'\2'$e'/' exit 0