Pages

2008-12-09

fold: Wrap Text File / Line / Words To Fit in Specified Width

"fold is really nifty command line utility to make a text file word wrap. This is useful for large number of text files processing. There is no need to write a perl / python code or use a word processor."

http://www.cyberciti.biz/tips/linux-unix-word-wrap-command.html

"For example, following command will wrap input.txt at 60 width columns:

$ fold -sw 60 input.txt > output.txt
"

No comments: