[Next] [Up] [Previous] [Contents]
Next: Remote shell trick Up: Miscellaneous tips Previous: Wildcards beyond the

Terminal input in a shell script

To input text from your terminal into a C shell script use the following syntax:


    while ( 1 )
        set line = "$<"
        if ( "$line" == "" ) break
        ...
    end
Also, be advised that the C shell has no way of distinguishing between a blank line and an end-of-file.


c.c.taylor@ieee.org