#!/bin/ksh #List the .profile file of everyone in the class who has the new one. for loginname in `roster 45` do #if the person running this shellscript has permission to cd #to $loginname's home directory, if [[ -x ~$loginname ]] then cd ~$loginname #If the .profile file is bigger than 2000 bytes, if [[ `ls -l .profile | awk '{print $5}'` -gt 2000 ]] then ls -l .profile fi fi done