Add quoteline script
authorColin McCabe <cmccabe@alumni.cmu.edu>
Sun, 13 Dec 2009 23:18:34 +0000 (15:18 -0800)
committerColin McCabe <cmccabe@alumni.cmu.edu>
Sun, 13 Dec 2009 23:18:34 +0000 (15:18 -0800)
ql.sh [new file with mode: 0755]

diff --git a/ql.sh b/ql.sh
new file mode 100755 (executable)
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.$.".'