PrepAway - Latest Free Exam Questions & Answers

Which command is guaranteed to produce the desired output if you have more than 20,000 files to process?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Find . – name ‘*, CSV’ – print0 | sargs -0 cat | tr ‘,’ ‘\t’ > all.tsv

B.
Find . –name ‘name * .CSV’ | cat | awk ‘BEGIN {FS = “,” OFS = “\t”} {print $1, $2, $3}’ > all.tsv

C.
Find . – name ‘*.CSV’ | tr ‘,’ ‘\t’ | cat > all.tsv

D.
Find . –name ‘*.CSV’ | cat > all.tsv

E.
Cat *.CSV > all.tsv

One Comment on “Which command is guaranteed to produce the desired output if you have more than 20,000 files to process?


Leave a Reply

Your email address will not be published. Required fields are marked *