#!/bin/sh
ls -F players > PLLS
grep / PLLS |\
awk -F/ '
{ jump = $1; printf("tar -cf /user/students/petebre/nirvana/mudlib/players/%s.tar %s\n", jump, jump); 
  printf ("gzip /user/students/petebre/nirvana/mudlib/players/%s.tar\n", jump);
}' > players/WIZ_BAK 
rm PLLS
chmod 700 players/WIZ_BAK
ls -F > RTLS
grep / RTLS |\
awk -F/ '
{ jump = $1; printf("tar -cf /user/students/petebre/nirvana/mudlib/%s.tar %s\n", jump, jump); 
  printf ("gzip /user/students/petebre/nirvana/mudlib/%s.tar\n", jump);
}' > ROOT_BAK 
rm RTLS
chmod 700 ROOT_BAK

