#!/bin/sh

USERS="gswacct jjaacct tqjacct jemacct jbmacct lowuser1 lowuser2 lowuser3 lowuser4 lowuser5"

OLDDATE="0101000003"

homedir() {
	eval echo ~$1
}

for u in $USERS; do
	h=`homedir $u`
	for x in 1 2 3 4 5; do
		touch $OLDDATE $h/oldfile$x
		touch $h/newfile$x
		touch $h/,newtempfile$x
		touch $OLDDATE $h/,oldtempfile$x
	done
	if [ -f "$h/growingfile" ]; then
		cat "$h/growingfile" "$h/growingfile" > "$h/growingfile~"
		mv "$h/growingfile~" "$h/growingfile"
	else
		echo -n "x" >> "$h/growingfile"
	fi
done

