I thought that might do it. You are welcome. The col command is not very well known, but it is perfectly suited to this purpose. The only thing that col cares about is preserving characters in the same columns that they were originally written to. It ignores things like linefeeds and (with the -b flag) backspaces. Col used to be frequently used to create and preserve that old "ascii art" that we would see in things like sig files.
On Dec 18, 4:49 pm, Iron_Man <[email protected]> wrote: > This ended up working for me. The command I ended up using was: > # man bc | col -b > info.txt > > Thank you. > > On Dec 18, 2:02 am, "[email protected]" <[email protected]> > wrote: > > > Try this: > > > man ls | col -b | lp > > > On Dec 17, 8:27 pm, Iron_Man <[email protected]> wrote: > > > > I'm hoping that there is an easy answer to this question. I am trying > > > to figure out how to print out a man page for 'bc'. My first attempt > > > at doing this was to use the command: > > > $ man bc > info.txt > > > > My problem with this command is that when I opened info.txt there were > > > a number of formatting oddities. Is there a way to extract the man > > > page to a text file, while keeping the formatting true to how you > > > would see the man page in the console? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
