ReadingInput.ksh

#!/bin/ksh

# ReadingInput.ksh
#
# This script shows how to read input
# from the user. Moreover, it warns
# you about how whitespace is used to
# input more than one variable.

# Jim 666-666-6666

# Printing with the .
print "Please enter a city name: "

# Print a blank line.
print

# Printing without the .
print -n "Please enter a city name: "

# Read in a value:
read City

print "The name of the city is: $City"
print

#####
# Problems with white spaces:
print -n "Please enter the names of 2 cities: "

# You can read in multiple values at once.
read City1 City2

print "The name of the FIRST city is: $City1"
print "The name of the SECOND city is: $City2"