14. Februar 2008

word wrap command line tool

von Sveenie | um 13:08 Uhr | in Was den Geek bewegt | 2 Kommentare

I just couldn’t find one, so I ended up using this line:

cat <textfile> | perl -e 'use Text::Wrap;$Text::Wrap::columns=70;
while(<>) {print wrap("","",$_)}'

Powered by WordPress. Theme based on Pool.
Entries and comments feeds. Valid XHTML and CSS. ^Top^