nerdexam
Cloudera

DS-200 · Question #15

DS-200 Question #15: Real Exam Question with Answer & Explanation

Sign in or unlock DS-200 to reveal the answer and full explanation for question #15. The question stem and answer options stay visible for context.

Question

You have a directory containing a number of comma-separated files. Each file has three columns and each filename has a .csv extension. You want to have a single tab-separated file (all .tsv) that contains all the rows from all the files. Which command is guaranteed to produce the desired output if you have more than 20,000 files to process?

Options

  • AFind . -name *, CSV' ?print0 | sargs -0 cat | tr ,' `\t>t; all.tsv
  • BFind . -name name * .CSV' | cat | awk BEGIN {FS = "," OFS = "\t"} {print $1, $2, $3}' > all.tsv
  • CFind . -name *.CSV' | tr ,' `\t' | cat>; all.tsv
  • DFind . -name `*.CSV' | cat > all.tsv
  • ECat *.CSV > all.tsv

Unlock DS-200 to see the answer

You've previewed enough free DS-200 questions. Unlock DS-200 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.

Full DS-200 Practice