to80 (version 2.0)
index
/home/ut3hax/bin/to80

===============================================================================
to80
====
 
Just like wordwrap it will reformat text to a maximum width, default of 80.
 
Examples:
    to80 file.txt > new.txt 
        (new.txt is reformatted file.txt with lines up to 80 characters long)
 
    to80 -w50 file.txt > nex.txt 
        (new.txt is reformatted file.txt with lines up to 50 characters long)
 
    WARNING! Do not attempt:
        to80 SOMEFILE > SOMEFILE
    This will leave your file EMPTY!

 
Modules
       
optparse
os
sys

 
Functions
       
main()
usage: to80
run(opts, args)
determins if input is a file, or text, then runs tolen
tolen(s, i=80)
Reads the input string :s: and reformatts to an specified length :i:
version()

 
Data
        __author__ = 'Josh Lee'
__copyright__ = 'PyTis.com'
__created__ = '06:38pm 11 Nov, 2009'
__version__ = '2.0'

 
Author
        Josh Lee