#! /bin/csh -f # # Filename: tree # # Programmer: Br. David Carlson # # Date: February 7, 1994 # # Description: C shell script to show the directory tree. # # Files used: tree.aux (auxiliary shell script) # set tree_tmp=`ls -lA | grep ^d | grep -v ^t | cut -c 55-` set dir_count=0 setenv I_COUNT 0 while ($dir_count < $#tree_tmp) @ dir_count++ echo $tree_tmp[$dir_count] cd $tree_tmp[$dir_count] tree.aux cd .. end unset tree_tmp dir_count unsetenv I_COUNT