->Title Page
->Intro
->Unix
-->Overview
-->File Structure
-->Online Manual
-->Basic Commands
-->Additional Commands
-->Login files
-->Special characters
-->Miscellaneous Tips
--->Strange names
--->Advanced wildcards
->Terminal input
--->Remote shell
--->Loops in scripts
--->More tricks
-->Things to try
->Vi editor
->Mirror sites
->Further reading

[ Up ]
[Prev][Home][Next]
[Author]

Unix ---> 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.

Site Statistics

Find this site useful? Want to give something back?

t a y l o r@l i n u x a v e.n e t

© 1993-2000 Christopher C. Taylor