Question
Train A running at speed of 63 km/hr crosses a platform
having twice the length of train in 18 sec. Train B whose length is 330m crosses same platform in 36 sec, then find the speed of train B ?Solution
Let length of train A = x Length of platform = 2x Speed = distance/time ⇒ 63 x 5/18 = (x + 2x)/18 ⇒ x = 105 m = length of train A Length of platform = 105 x 2 = 210m For train B, Speed = distance/time ⇒ (210 + 330)/36 x (18/5) ⇒ 54 km/hr
In shell scripting, $1 represents:
Which command safely iterates over filenames that may contain spaces and newlines in a shell script?
How do you typically make a shell script file executable?
Which command is used to display the current working directory in a Unix-like operating system?
Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
Which construct replaces a command with its output in a POSIX shell?
Which ETL process step validates and cleans data before loading?
Which command is used to display the last few lines of a file?
What does $# represent in a shell script?
What will be the output of the following script snippet?
  for item in Apple Banana Cherry; do
 echo $item
done