#!/bin/csh -fb
# @(#)---Copyr-ExNet--- rmaux.sh 1.4@(#) 90/09/05 #
####
# Script to recursively remove all (ln -s) LINKED .aux files from current 
# directory and subdirectories; very necessary before running LaTeX in a 
# parallel dir structure made with par_dir.
#
# .log files are removed in the same way.
####
# MORAL:
#	Don't share .aux files
####
find . '(' -name '*.aux' -o -name '*.log' -o -name '*.idx' ')' \
					-a '(' -type l -o '\!' '(' -user $user ')' ')' \
					-a -print -a -exec rm -f {} \;
