projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4104a4f
)
Add quoteline script
author
Colin McCabe
<cmccabe@alumni.cmu.edu>
Sun, 13 Dec 2009 23:18:34 +0000 (15:18 -0800)
committer
Colin McCabe
<cmccabe@alumni.cmu.edu>
Sun, 13 Dec 2009 23:18:34 +0000 (15:18 -0800)
ql.sh
[new file with mode: 0755]
patch
|
blob
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.$.".'