#good for reflowing gutenberg books in .txt format, no guarantees it won't puke on other types of files cat $* | sed 's/^$/~~~P/' | tr '\n' ' ' | sed 's/~~~P/\n\n/g'