Shell Script Interview Questions
Questions Answers Views Company eMail

What is the syntax of "grep" command?

4 19248

What is egrep?

2 5902

What are the additional egrep symbols?

2 5140

What is the use of "test" command?

2 5939

Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"

6 12808

Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"

5 9606

What is the syntax of "expr" command?

2 18385

In shell scripting if text is surrounded by single quotes what does it denotes?

3 7407

How to group the commands in shell scripting?

Polaris,

2 9872

What is the use of script interpreter in shell scripting?

3 6218

How to enable the shell to know what program should be run to interpret the script?

3 6110

give me some website where i can get unix and testing meterials

1 2983

how to create purchase order

2 4058

how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?

4 8147

How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?

IBM, Symphony,

3 9444


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

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

536


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.

783


Why is the use of shell script?

533


Explain about debugging?

598


What is the lifespan of a variable inside a shell script?

1105






Suppose you execute a command using exec, what will be the status of your current process in the shell?

564


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

1838


What are script files?

541


How do you find out What is your shell?

574


What is the syntax of "nested if statement" in shell scripting?

616


What is a command line shell?

555


What is a boot block?

565


Which is better perl or shell scripting?

546


Is powershell a bash?

584


Why is used in shell scripting?

542