if ! command

WU SHI-KUEI skwu at boulder.Colorado.EDU
Wed Oct 25 04:42:56 AEST 1989


The command:

	command || whatever

is entirely equivalent to:

	if command
	then
		:
	else
		whatever
	fi

If 'whatever' is more than one line, one can write:

	command || {
		whatever1
		whatever2
		. . .
	}



More information about the Comp.unix.questions mailing list