summaryrefslogtreecommitdiffhomepage
path: root/src/blog/grab/example-2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/blog/grab/example-2.sh')
-rw-r--r--src/blog/grab/example-2.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blog/grab/example-2.sh b/src/blog/grab/example-2.sh
new file mode 100644
index 0000000..883c580
--- /dev/null
+++ b/src/blog/grab/example-2.sh
@@ -0,0 +1,4 @@
+$ grab 'x/[^\n].+?(?=\n\n|$)/ g/(\b\w+\b)\s+\1/ h/(\b\w+\b)\s+\1/' foo
+This is also a paragraph
+but it contains <doubled>
+<doubled> words.