#!/bin/csh # ChangeOwner # # This script will change the owner of each folder to # the folder name. # # John Mark Swafford 8/7/07 # Move to the /user directory # cd /spool/mail # Make a list of the alphabet set letters = `ls` # Go to each directory and change the owners of all the files # to the filename. foreach let ($letters) chown -R $let $let end