156k views
3 votes
Your boss is trying to import the customers file into her spreadsheet program, but the data goes into the spreadsheet incorrectly. This is because the fields are separated by dashes (-) and the spreadsheet program requires the fields to be separated by colons (:). Which of the following commands can you use to convert the customers file?

a. replace - : customers
b. tr - "-" ":" < customers
c. sed %- % > customers
d. cat -r -/: customers

User Vladaman
by
4.0k points

1 Answer

3 votes

Answer:

Option B i.e., tr - "-" ":" < customers.

Step-by-step explanation:

When the user's supervisor wants to transfer the client's document into their software, however, the information falls inappropriately within the spreadsheet.

This occurs when some areas are divided through dashes "-", and the software for the spreadsheet includes a colon ":" to distinguish the areas. Then the following tr-"-":" "< commands that client could use to transform client document.

User Mhbdr
by
4.5k points