How do I return in Linux?
Answer
return command is used to exit from a shell function. It takes a
parameter [N], if N is mentioned then it returns [N] and if N is not mentioned then it returns the status of the last command executed within the function or script. N can only be a numeric value.
Answer
return command is used to exit from a shell function. It takes a
parameter [N], if N is mentioned then it returns [N] and if N is not mentioned then it returns the status of the last command executed within the function or script. N can only be a numeric value.