Question
The speed of the boat in still water is 12 km/hr and the
speed of the stream is 9 km/hr. A boat goes 84 km downstream with its usual speed but at the time of returning the speed of the boat in still water is doubled. Find the total time taken by boat to cover the whole distance.Solution
According to the question, Required time = 84/(12 + 9) + 84/(24 β 9) => 84/21 + 84/15 => 4 + 5.6 = 9.6 hours
What does #!/bin/bash at the start of a script mean?
Extended globbing in bash allows:
Which operator enables process substitution in bash (e.g., diff <(cmd1) <(cmd2))?
Which symbol is used for logical AND in shell scripting?
Which command is used to search for a pattern in files?
Which operator enables process substitution?
Which symbol is used in shell scripting to reference a positional parameter, e.g., the first argument passed to a script?
Which operator is used to append output to a file?
Which command is used to read user input from the keyboard and store it in a variable?
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?