This question already has an answer here:
When I execute
echo `man ls` > tem.txt
I get unformatted output in the text file, I mean output without any new lines, just continues sentences. How do I get formatted output ?
For example, unformatted output looks like:
LS(1) User Commands LS(1) NAME ls - list directory contents SYNOPSIS ls [OPTION]... [FILE]... DESCRIPTION List information about the FILEs (the current directory by default). Sort entries alphabetically if none of - cftuvSUX nor --sort is speci‐ fied. Mandatory arguments to long options are mandatory for short options too. -a.................