How to take input values from the user?

Answer Posted / guest

1. using read command
2. reading input from a file

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the contents of a file inside jar be read without extracting in a shell script?

598


c program to display the information of given file similar to givan by the unix or linux command ls -l

1701


What is an inode block?

579


Write down the syntax for all the loops in shell scripting.

666


How can you get the value of pi till a 100 decimal places?

557






What is bash used for?

581


How to find all the files modified in less than 3 days and save the record in a text file?

615


What is path in shell script?

641


What is shell application?

573


What will happen to my current process when I execute a command using exec?

539


Is shell a part of kernel?

563


How do I read a .sh file?

532


How to calculate the number of passed arguments?

558


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

1857


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

756