#!/bin/sh # # tosecond - returns the currend second, depending on $LANG, e.g. 24oct2012 # # $Id$ format=+%d%b%Y-%H:%M:%S; case "$1" in -n) format=+%Y%m%d%H%M%S;; esac date $format | sed 's/.*/\L&/'