summaryrefslogtreecommitdiffhomepage
path: root/src/blog/grab/example-3.sh
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-28 02:37:49 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-28 02:37:49 +0200
commit9463cda98b38b37cfb5bd5ee1ee5123221f046fb (patch)
treef432e82f4344c567ca2b9d046aaace8e3f5ff198 /src/blog/grab/example-3.sh
parente9edd2daec87f3f30988c83c972e028465303b70 (diff)
Add blogpost about Grab
Diffstat (limited to 'src/blog/grab/example-3.sh')
-rw-r--r--src/blog/grab/example-3.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blog/grab/example-3.sh b/src/blog/grab/example-3.sh
new file mode 100644
index 0000000..cfebed3
--- /dev/null
+++ b/src/blog/grab/example-3.sh
@@ -0,0 +1,4 @@
+$ grab 'x/[^\n].+?(?=\n\n|$)/ g/(\b\w+\b)\s+\1/ h//' foo
+This is also a paragraph
+but it contains <doubled>
+<doubled> words.