summaryrefslogtreecommitdiff
path: root/blp.1
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-22 18:54:58 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-23 00:08:13 +0100
commit469143445f6ef32b7dff34a755f1464068db322b (patch)
tree7eda3a9970a65f7b4cab796b5a66d8d384f3e528 /blp.1
parent3537be9e7c578f8ca84e9d420044654577706a11 (diff)
downloadweb-469143445f6ef32b7dff34a755f1464068db322b.tar.gz
Add 'blp' toolblocket
This script retrieves the phone number associated with a Blocket.se ad.
Diffstat (limited to 'blp.1')
-rw-r--r--blp.135
1 files changed, 35 insertions, 0 deletions
diff --git a/blp.1 b/blp.1
new file mode 100644
index 0000000..4901b11
--- /dev/null
+++ b/blp.1
@@ -0,0 +1,35 @@
+.Dd $Mdocdate$
+.Dt blp 1
+.Os
+.
+.Sh NAME
+.Nm blp
+.Nd retrieve phone numbers for ads
+.
+.Sh SYNOPSIS
+.Nm
+.
+.Sh DESCIPTION
+.Pp
+.Nm
+retrieves the telephone number attached to Blocket.se ads formatted with
+.Xr blm 1
+on standard input.
+Specifically, it looks for
+.Ql ID
+headers.
+Any line not containing an
+.Ql ID
+header is ignored.
+
+You can pipe a message from
+.Xr mailx 1
+into
+.Nm
+to display the telephone number associated with a given ad.
+.
+.Sh AUTHORS
+.Pp
+.Nm
+is written by John Ankarström
+.Aq Mt john (at) ankarstrom.se .