Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Shell Script Interview Questions

There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.

1 Answers   Wipro,


what is the difference between writing code in shell and editor?

1 Answers  


what is tickets $ what low,medium,high priorite pls define time also

0 Answers  


What is scripting used for?

0 Answers  


why did you apply to shell

3 Answers   Shell,


Is powershell a bash?

0 Answers  


How do I run a shell script in powershell?

0 Answers  


What is the first line in every perl script called?

0 Answers  


Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 Answers  


What are script files?

0 Answers  


What are the 3 standard streams in linux?

0 Answers  


What is echo in shell?

0 Answers  


Categories