summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 16:17:33 +0200
committertv <tv@xso>2011-09-09 16:17:33 +0200
commita449098de8ded3ebcd4f02c6ba0d31f43fef86a8 (patch)
tree12f1fbc952a4ced431132a68d1aef4a7a8aa460c /util
parenta6521f5755d80ca09be88ca2f719fab526a88b43 (diff)
//util/bin/anonbox.net: that sed-foo, again^_^
Diffstat (limited to 'util')
-rwxr-xr-xutil/bin/anonbox.net8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/bin/anonbox.net b/util/bin/anonbox.net
index d038cd0a..3b648afb 100755
--- a/util/bin/anonbox.net
+++ b/util/bin/anonbox.net
@@ -13,12 +13,12 @@ GET() {
## retrieve data
eval "$(${GET-GET} |
- sed -rn '
-s^<dd><p>([[:alnum:]@.]+)</p></dd>$\
+ sed -n '
+s^<dd><p>\([[:alnum:]@.]\+\)</p></dd>$\
email="\1" ; p
-s^<dd><p><a href="([^"\\]+)">.*</a></p></dd>$\
+s^<dd><p><a href="\([^"\\]\+\)">.*</a></p></dd>$\
uri="\1/" ; p
-s^<dd><p>([0-9]+)/([0-9]+)/([0-9]+) ([0-9]+):([0-9]+) ([ap]).m.</p></dd>$\
+s^<dd><p>\([0-9]\+\)/\([0-9]\+\)/\([0-9]\+\) \([0-9]\+\):\([0-9]\+\) \([ap]\).m.</p></dd>$\
Y=20\3 ; \
m=\1 ; \
d=\2 ; \