grigoris Astronomy February 3, 2010 June 24, 2015 When using the while loop in C-shell scripting the usual stucture is: while (expression)commands…end BUT, you need to add an empty line or a comment after end in order for the loop to work!