next up previous 405
Next: Script arguments and other special variables
Up: Shell Variables
Previous: Special characters


Prompting

Some scripts might have parameters that cannot be defaulted, and so if their values are not given on the command line, the script needs to prompt for them.

     echo -n "Give the smoothing size"
     set size = $<
This will prompt for the parameter and store the entered value into shell variable size.

next up previous 405
Next: Script arguments and other special variables
Up: Shell Variables
Previous: Special characters

C-shell Cookbook
Starlink Cookbook 4
Malcolm J. Currie
2006 November 26
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council