#!/bin/sh # # Written by Florian Diesch # # Updates may be available at # # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # You are free to do with it what ever you want. # device=${DVDDEVICE:-/dev/dvd} date --date "1/2 $(lsdvd "$device"|awk 'BEGIN{FS="[: ]+"}/^T/{printf "%shour%smin%ssec",$4,$5,$6}')" +%H:%M:%S