From e3495d89b7c14f67b2bf7b98538ec65b76938355 Mon Sep 17 00:00:00 2001 From: Colin McCabe Date: Sun, 13 Dec 2009 15:29:04 -0800 Subject: [PATCH] Add carat.sh quoting program --- carat.sh | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) create mode 100755 carat.sh 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/^/> /' -- 1.6.6.rc1.39.g9a42