[Ilugc] question about text formatting

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Fri, 18 Nov 2011 16:00:11 +0530 (IST)



--- On Fri, 18/11/11, Girish Venkatachalam <girishvenkatachalam at gmail.com> 
wrote:

From: Girish Venkatachalam <girishvenkatachalam at gmail.com>
Subject: [Ilugc] question about text formatting
To: "Indian Linux User Group Chennai" <ilugc at ae.iitm.ac.in>
Date: Friday, 18 November, 2011, 3:46 PM
I have a need.

All of you would have seen newspaper print and PDF
documents in which
two columns of text are displayed.

The first column will be half the page, there will be a
vertical line
or a just a space and the next column will be
 alongside.

So people read the text from the left column and once they
are done
they switch over to the right column.

I hope you get what I mean.

Now I want to do this with plain text. How to do that?

I know that fmt can format the text to wrap around at 36
instead of
standard 72 chars.

After that how to "paste" text into the right side?

Any ideas?




pr will do it much better
pr --columns=2 myfile

You can even merge multiple files using -m
Look at man pr

Raman.P
blog:http://ramanchennai.wordpress.com/


Other related posts: