Page 1 of 1

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working

Posted: Mon Aug 01, 2022 9:41 am
by answerhappygod
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He has a data.txt file in which each column is separated by the TAB character. Now, he wants to use this file as input for a data mining software he has created. The problem preventing him from accomplishing his task is that with his data mining software, he has used TAB as a delimiter to distinguish between columns. Hence, he is unable to use this file as input for the software. However, if he somehow replaces the TAB characters of the file with SPACE characters, he can use this file as an input file for his data mining software.
Which of the following commands will John use to replace the TAB characters of the file with SPACE characters?

A. expand -t 1 data.txt > data.txt
B. cat data.txt
C. chmod 755 data.txt
D. touch data.txt