Shell Script Interview Questions
Questions Answers Views Company eMail

What is the use of .sh file?

833

What does .sh file contain?

746

What is the fastest scripting language?

757

What does $@ mean bash?

857

Why is a script important?

776

What is the first line in every perl script called?

820

What is computer cli?

683

What is the default ubuntu terminal?

837

Is scripting and coding the same thing?

765

What is the difference between scripting and coding?

757

What language is used in terminal?

753

What is bash eval?

772

What is sudo command?

769

What does the sh command do?

837

How do you debug a script?

798


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What is difference between shell and bash scripting?

754


What is $1 in shell scripting?

816


How to print the first array element?

815


What can scripts do?

861


What is a shell made of?

757


What is inside a seashell?

881


What is the difference between break and continue commands?

819


How will you emulate wc –l using awk?

1245


What is the default ubuntu terminal?

837


Explain about non-login shell files?

917


What lives in a shell?

738


What is a beat in a script?

756


Where are cowrie shells found?

788


on “sed” command EmpData(Sample Database) 1122|j.b. saxena |g.m. |account |12/12/52|6000 2233|n.k. gupta |d.g.m |sales |31/12/40|9000 4545|anil agarwal |director |account |06/07/47|7500 5656|lalit choudhury |executive|marketing|07/09/50|5000 1265|chanchal singhvi|g.m. |admin |12/09/63|6000 0110|shyam saksena |chairman |marketing|12/12/43|8000 5566|jai sharma |director |account |23/12/89|7000 7733|jayant |d.g.m |sales |29/02/70|6000 1. From the above database substitute the delimiter of first 3 lines with “ : “ 2. From the above database substitute the delimiter with “ : ” 3. Insert the string “ XYZ Employees” in the first line. 4. Store the lines pertaining to the directors, d.g.m and g.m into three separate files. 5. Using address store first 4 lines into a file Empupdate. 6. Find the pattern “account” in the database and replaces that with “accounts”. 7. Select those lines which do not have a pattern “g.m”. 8. Insert a blank line after every line in the database.

2867


Why is used in shell scripting?

772