#!/bin/bash SGV=$1 DIRECTION=$2 AT=$3 OPTS="" if [ -n "$AT" ]; then OPTS="--date ${AT}" fi ISO=$(date -Iseconds $OPTS) UNIX=$(date +%s $OPTS) ( cat <