To read input from stdin using the csh (similiar to while read VARIABLE with ksh), do the following:

while ( 1 ) 
  set LINE = "$<" 
  if ( "$LINE" == "" ) then 
    break 
  endif 

  rest of code using $LINE here .... 

end

Recent Changes