1: #!/bin/sh 2: echo "Testing interactive user input: enter some keystrokes and press return" 3: read x more 4: echo "First word was \"$x\"" 5: echo "Rest of the line (if any) was \"$more\""
last modified 22/03/2012 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |