command line args

ACMFIU acmfiu at serss0.fiu.edu
Sat Jan 26 22:52:29 AEST 1991


i want to set up a shell script to go through the args passed on it and
act accordingly. i thought this would do but apparently not. i get a
"switch unexpected" error.

while ($1)
	switch ($1)
		case foo:
			blah
			breaksw

		case foofoo:
			blah
			breaksw
	endsw

	shift [$1]
end

alber chin



More information about the Comp.unix.shell mailing list