From c5c796efea95cf7c3cef19e0fa9a057ea55a27b9 Mon Sep 17 00:00:00 2001 From: Colin McCabe Date: Sun, 13 Dec 2009 15:18:34 -0800 Subject: [PATCH] Add quoteline script --- ql.sh | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100755 ql.sh 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.$.".' -- 1.6.6.rc1.39.g9a42