Which of the following commands converts spaces in a fi…

Which of the following commands converts spaces in a file to tab characters and prints the
result to standard output?

Which of the following commands converts spaces in a file to tab characters and prints the
result to standard output?

A.
iconv

B.
expand

C.
unexpand

D.
tab



Leave a Reply 2

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


JulesVerne

JulesVerne

EXPAND not UNEXPAND

micormat

micormat

THE ANSWER IS TRUE, is UNEXPAND acording to –help:

# unexpand –help
Usage: unexpand [OPTION]… [FILE]…
Convert blanks in each FILE to tabs, writing to standard output.

# expand –help
Usage: expand [OPTION]… [FILE]…
Convert tabs in each FILE to spaces, writing to standard output.