--- On Fri, 18/11/11, Girish Venkatachalam <[email protected]> 
wrote:

> From: Girish Venkatachalam <[email protected]>
> Subject: [Ilugc] question about text formatting
> To: "Indian Linux User Group Chennai" <[email protected]>
> 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/

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to