From 4836f9f34ec7d08a0fa920898af9724e031c0e09 Mon Sep 17 00:00:00 2001 From: "tilde.town" Date: Mon, 29 Dec 2014 02:47:39 +0000 Subject: [PATCH] add tweet script --- scripts/tweet | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/tweet diff --git a/scripts/tweet b/scripts/tweet new file mode 100755 index 0000000..378fa2d --- /dev/null +++ b/scripts/tweet @@ -0,0 +1,11 @@ +#!/bin/bash + +collect= + +while read -r; do + collect="$collect / $REPLY" +done + +status=$(echo $collect | sed -r 's/^.{2}//') + +twurl -X POST "/1.1/statuses/update.json?status=$status"