#!/bin/csh -xvf
#!/bin/tcsh -f
if ( $#argv != 2 ) then
	echo "Exactly two args please" 
	exit 1
endif
if { test -r $argv[1] } echo $argv[1] is readable.
if ( -r $argv[1] ) echo $argv[1] is readable (2nd test).
if ( -f $argv[1] ) then
grep $2 $1 >& /dev/null
	if ( $status == 0 ) echo $1 contains $2
endif
#Intentional syntax error:
if ( [ -d $argv[1] ] ) echo $argv[1] is a directory.
