Bird
0
0

What is wrong with this command?

medium📝 Debug Q7 of 15
Bash Scripting - Text Processing in Scripts
What is wrong with this command?
sort <<<
Asort command does not accept input
B<<< operator is invalid syntax
CMissing string after <<< operator
DNo error, command sorts empty input
Step-by-Step Solution
Solution:
  1. Step 1: Check here string usage

    The here string operator <<< requires a string after it to send as input.
  2. Step 2: Analyze given command

    Here, no string is provided after <<<, causing a syntax error.
  3. Final Answer:

    Missing string after <<< operator -> Option C
  4. Quick Check:

    Here string must have input string after <<< [OK]
Quick Trick: Never leave <<< without a string to send [OK]
Common Mistakes:
MISTAKES
  • Leaving <<< without string
  • Thinking sort cannot take input
  • Confusing <<< with other operators

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes