From: Colin McCabe Date: Sun, 13 Dec 2009 23:29:04 +0000 (-0800) Subject: Add carat.sh quoting program X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3495d89b7c14f67b2bf7b98538ec65b76938355;p=cmccabe-bin Add carat.sh quoting program --- diff --git a/carat.sh b/carat.sh new file mode 100755 index 0000000..07a68fb --- /dev/null +++ b/carat.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# +# This is a simple little program for formatting text. +# When I'm posting messages to messageboards like LWN.net, I often like to +# quote another poster. The traditional way to do this is to put carats +# before his text, like this: +# +# > quoted text goes here +# reply goes here +# +# This script will add the carats to source text. It will also do +# line-wrapping at 76 characters along the way. +# +# Colin McCabe +# + +fold -s -w 75 | sed 's/^/> /'