Shell Script Interview Questions
Questions Answers Views Company eMail

What's the difference between scripting and coding?

832

What are the types of script?

866

What is awk script?

748

What is in a script?

758

What happens when you type ls?

766

What language is bash written in?

780

How do I stop script errors?

800

How does path variable work?

741

What does egrep mean?

762

How do I edit a .sh file?

879

Which scripting language is best for automation?

733

What is bash used for?

777

What is console line?

767

What is batch file programming?

923

What does echo $0 do?

770


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

Give some situations where typing error can destroy a program?

956


What is k shell?

746


What is bash command used for?

798


How will you print the login names of all users on a system?

756


What does $@ mean bash?

857


What are the different types of shell scripting?

788


write a shell script to check the failed jobs?

4161


Why is shell scripting important?

781


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


What are "c" and "b" permission fields of a file?

785


Is shell scripting easy to learn?

783


How do you find out What is your shell?

806


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

817


What is sh in shell script?

786


Explain about login shell?

829