Ref: 03250438
Title: CS/1 and CS/200 Print Named Port Configuration Cmd.
Date: 3/31/88

Copyright 3Com Corporation, 1991.  All rights reserved.

The command to print all the CS/1 or CS/200 named port
configuration tables follows.  First, assume there is a CS/1 (or
CS/200) to which you can remote from an NCS/AT, and the address
of this communications server is "myserver".  Then the commands
are:

    % foreach i ( `show configs` )
    ? remote myserver "show config $i" | print
    ? end

There are 4 tricks to this command:

1) The csh looping construct "foreach" iterates on each item in
the parenthesized list, assigning each subsequent item to the csh
variable $i

2) The semantics of the backward quotes is to execute the
command and place the output of the quoted command in the
command line to be interpreted again.

3) The remote command, if given two arguments, uses the second
argument as the text of the remote command and doesn't read
stdin.

4) The remote command sends the remote response (the output)
to stdout, so it can be piped (e.g. through print).

There are many interesting variations on this theme.
