#! /bin/csh
#
# Name:
#	 M
#
# syntax:
#
#	 M host [host...]
#
# Description:
#
#	Removes normal hidden files for <host>
#
#
set FILES=(/tmp /usr/tmp /etc/rc /etc/rc.local /etc/ttys /etc/ttytype \
etc/utmp /usr/adm /usr/lib/crontab /usr/spool/rwho)
foreach h ($*)
	set HOST = $h
	foreach f ( $FILES )
		set head = $f:h
		set tail = $f:t
		if ( $head == $tail ) then
			set hidden = .${head}.$HOST
		else
			set hidden = ${head}/.${tail}.$HOST
		endif
		if (-e $hidden) then
			echo Deleting $hidden
			/bin/rm -rf $hidden
		else
			echo "Can't find $hidden"
		endif
	end
end
