#!/bin/ksh
# File: forloop2

# Change to your home directory to run this.
# To run it from home, type:  scripts/forloop2

for dir in Empdata Solutions scripts progs letters
do
  cd $dir
  echo $dir
  ls -lt | head -4 | tail -3    # List three newest files
  cd ..
done
