One line If-then-else block in csh possible?

Ronald Harichandran harichan at eecae.uucp
Thu Feb 14 05:06:58 AEST 1991


Is it possible to have an if-then-else-endif block on a single line?

I wish to do something like

if () then
  command
else
  command
endif

but wish to have it in a single line like

if () then, command, else, command, endif
--

Sincerely,

Ronald Harichandran



More information about the Comp.unix.shell mailing list