From: Colin McCabe Date: Sun, 13 Dec 2009 23:18:34 +0000 (-0800) Subject: Add quoteline script X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5c796efea95cf7c3cef19e0fa9a057ea55a27b9;p=cmccabe-bin Add quoteline script --- diff --git a/ql.sh b/ql.sh new file mode 100755 index 0000000..7d12ae7 --- /dev/null +++ b/ql.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# +# This is a script I wrote to put quotes around lines of text. +# A typical use might be something like this: +# find | ql.sh | xargs -l grep --with-filename foo +# +# Of course, one could accomplish the same thing with: +# find -print0 | xargs -0 -l grep --with-filename foo +# +# but this at least illustrates the principle. +# +# Colin McCabe +# + +sed 's.^.".' | sed 's.$.".'