Shell Scripting Question:

Download Job Interview Questions and Answers PDF

How do you define a function in a shell script?

Shell Scripting Interview Question
Shell Scripting Interview Question

Answer:

function-name() { #some code here return }

Download Shell Scripting Interview Questions And Answers PDF

Previous QuestionNext Question
How do you stop all the processes, except the shell window?How do you read keyboard input in shell scripts?