--- On Fri, 2/10/09, Girish Venkatachalam <[email protected]> wrote:
> >> $ fold -w 60 thirukural.txt
> >>
> >> Thanks. That worked. Additionally I had to use
> option -s to fold it at the
> > next white space
>
> I wonder how to do it in perl/python. I don't have any idea
> at
> the top of my mind.
python is not in my mind. Here is perl solution.
use Text::Wrap $Text::Wrap::columns=60;
$line='hello this is line very long and lengthy and perl will split it';
print wrap('','',$line);
Raman.P
blog:http://ramanchennai.wordpress.com/
Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc