Answer Posted / sujay kumar
First method:
function function_name
{
}
Second Method:
function_name()
{
}
For both methods, the invocation of function would be in
the same format only.
Invocation:
function_name
| Is This Answer Correct ? | 62 Yes | 12 No |
Post New Answer View All Answers
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What are scripts in psychology?
What is a shell made of?
What can you do with powershell?
How do I run a powershell script?
How do I start a shell script?
What are the various stages of a linux process it passes through?
What are the different commands available to check the disk usage?
What language is bash?
What are the two files of crontab command?
Calculate a real number calculation directly from the terminal and not any shell script.
What are the default permissions of a file when it is created?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What are the disadvantages of shell scripting?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.