#!/usr/bin/env sh
input=""
output=$HOME/blogs/interesting/src/interesting.txt
if [[ -p /dev/stdin ]]
then
input="$(cat -)"
else
input="${@}"
fi
if [[ -z "${input}" ]]
return 1
echo "$(date -Iseconds) ${input}" >> $output