Bird
0
0

Why do many bash scripts process text files instead of other file types?

easy🧠 Conceptual Q11 of 15
Bash Scripting - Text Processing in Scripts
Why do many bash scripts process text files instead of other file types?
ABecause text files are easy to read and manipulate with simple commands
BBecause binary files are faster to process
CBecause text files take up less disk space
DBecause scripts cannot open images or videos
Step-by-Step Solution
Solution:
  1. Step 1: Understand file types in scripting

    Text files contain readable characters, making them easy to handle with commands like grep and sed.
  2. Step 2: Compare text and binary files

    Binary files need special tools and are harder to manipulate directly in scripts.
  3. Final Answer:

    Because text files are easy to read and manipulate with simple commands -> Option A
  4. Quick Check:

    Text files = easy manipulation [OK]
Quick Trick: Text files are simple to handle with basic commands [OK]
Common Mistakes:
MISTAKES
  • Thinking binary files are easier to process
  • Assuming scripts can't open non-text files
  • Confusing file size with ease of processing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes