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

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password