From bb821daadb6a343560cbf39627dbd80d78a197cd Mon Sep 17 00:00:00 2001 From: Scott Cotton Date: Fri, 17 Sep 2021 14:46:38 +0200 Subject: [PATCH] add-unblot-tutorial --- docs/tutorial.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 7c0b2d6..1d3a9f6 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -92,14 +92,32 @@ dupi extract dupi index -a /path/to/new/docs ``` +## Blotting + +Sometimes it might be interesting to see if a file has a blot. Dupi +provides the ability to blot files using the same mechanism as is +used in the index. + +``` +dupi blot file +``` + + ## Querying the index -At the moment, all we provide is this: +Dupi provides primitives for unblotting, which takes a blot and +reconstructs the corresponding text and instances. This is still +rudimentary, but here are some examples. ``` dupi extract | awk '{print $1}' | xargs dupi unblot ``` +Or + +``` +dupi blot file | xargs dupi unblot +``` ## Conclusion