Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

Write a shell script to ask your name, program name and enrolement number and print it on the screen

Posted By: Victoria Hughes     Category: Unix / Linux / Ubuntu     Views: 4064

Write a shell script to ask your name, program name and enrollment number and print it on the screen.

Code for Write a shell script to ask your name, program name and enrolement number and print it on the screen in Unix / Linux / Ubuntu

echo Enter your name
read name
echo Enter your program name
read prog
echo Enter your enrolement number
read enrol
clear
echo Details you entered
echo Name:$name
echo Program Name:$prog
echo Enrolement Number:$enrol
  
Share: 



Victoria Hughes
Victoria Hughes author of Write a shell script to ask your name, program name and enrolement number and print it on the screen is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!