How to take input values from the user?

Answer Posted / swaroopa

Use the command read. Suppose you want to take the path of
an argument, then read the variable like

read folder_path

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What shell is bin sh?

538


How do I debug a shell script?

570


What is meant by dos operating system?

578


Why do we use shell scripting?

554


What is the fastest scripting language?

554






Why are there shells on the beach?

601


is this growing field and what is average package in this?

1878


Explain about shebang?

624


How to redirect both standard output and standard error to the same location?

642


What language is bash written in?

567


I have 2 files and I want to print the records which are common to both.

704


What is bash coding?

505


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

560


What can scripts do?

669


How many fields are present in a crontab file and what does each field specify?

590