Hey guys, I am trying to write a shell script that does the following:

•Display the user a prompt to enter his name
•Read the name
•Display the user a prompt to enter his age
•Read the age
•Display the message as “Hello, your name is …… and your age is ….”. the dots are to display the two values for name and age entered at the keyboard

can anybody help me with this?

Hi, try this it will work.

#!bin/csh

echo "Enter your name"
read name
echo "Enter your age"
read age

echo "Hello, $name your age is $age."
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.