unix system enhancements

Chris Torek chris at umcp-cs.UUCP
Tue Oct 7 12:14:17 AEST 1986


Whoops!

In article <3714 at umcp-cs.UUCP> I wrote:
>	# dcuug (D.C. Unix User's Group) login script
>	if
>		echo \^`tty`$ | grep -s -f /etc/restrict/dialups
>	then
		...

This, of course, does not work, since `-f' is an `fgrep' option,
not a `grep' option.  I did some surgery on the dcuug script, for
I had noticed that it was rather wrong.  Naturally, I did not test
the result.  This (also untested) should work rather better:

	if grep -s \^`tty`$ /etc/restrict/dialups; then
		...
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list