nerdexam
LPI

010-160 · Question #22

A directory contains the following files: a.txt b.txt c.cav What would be the output of the following shell script? for file in * .txt do echo $file done

Sign in or unlock 010-160 to reveal the answer and full explanation for question #22. The question stem and answer options stay visible for context.

The Power of the Command Line

Question

A directory contains the following files: a.txt b.txt c.cav What would be the output of the following shell script? for file in * .txt do echo $file done

Options

  • A*.txt
  • Ba b
  • Cc.cav
  • Da.txt
  • EA. txt
  • Ftxt

Unlock 010-160 to see the answer

You've previewed enough free 010-160 questions. Unlock 010-160 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#shell scripting#for loop#glob patterns#shell expansion
Full 010-160 Practice