From: Colin Patrick Mccabe Date: Wed, 20 Nov 2013 18:08:59 +0000 (-0800) Subject: carat.sh: add -w option, change default behavior X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6282f5bc4dd89940aa4d8ba829c4589176ada8c6;p=cmccabe-bin carat.sh: add -w option, change default behavior Signed-off-by: Colin McCabe --- diff --git a/carat.sh b/carat.sh index 07a68fb..a96b680 100755 --- a/carat.sh +++ b/carat.sh @@ -15,4 +15,8 @@ # Colin McCabe # -fold -s -w 75 | sed 's/^/> /' +if [[ "$1" == "-w" ]]; then + fold -s -w 75 | sed 's/^/ > /' +else + sed 's/^/ > /' +fi