Bird
0
0

What is the output of the command

medium📝 Command Output Q4 of 15
Bash Scripting - Quoting and Expansion
What is the output of the command
echo {3..7}
?
A3,4,5,6,7
B3 4 5 6 7
C{3..7}
D3-7
Step-by-Step Solution
Solution:
  1. Step 1: Understand brace expansion output

    Brace expansion {3..7} expands to numbers 3 through 7 separated by spaces.
  2. Step 2: Check output format

    echo prints the expanded list separated by spaces: 3 4 5 6 7.
  3. Final Answer:

    3 4 5 6 7 -> Option B
  4. Quick Check:

    Brace expansion output = spaced numbers [OK]
Quick Trick: Brace expansion outputs space-separated sequences [OK]
Common Mistakes:
MISTAKES
  • Expecting commas or hyphens in output
  • Thinking braces print literally
  • Confusing output with list syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes