SED - Unix stream editor - a great tool for editing a lot of documents at once with scripts. Also look up gawk.
A great set of one line sed examples:
http://sed.sourceforge.net/grabbag/tutorials/
and:
http://sed.sourceforge.net/sed1line.txt
Another tutorial for SED:
http://www-106.ibm.com/developerworks/linux/library/l-sed1.html
A good FAQ, it includes many, well frequently asked questions:
http://www.ptug.org/sed/sedfaq.htm
A SED example to insert line breaks every x characters:
sed 's/.\/&\n/g' yourfile
sed 's/.\/&\n/g' yourfile
Hmm... being eaten by some code.
That's supposed to read: sed 's/.\ curley open, 494 backslash by backspace key close curly/&\n/g' yourfile
From: http://ubuntuforums.org/showthread.php?t=854562
Some Notes:
tags: tool, edit