#!/bin/sh timediff=foo tmpret=`timediff.pl $file` if [ "$tmpret" != "" ] ; then # empty? timediff=$tmpret fi echo $timediff