diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index bca7f99..57b7985 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -118,9 +118,12 @@ case $1 in echo -e "${CS[bg,Blue]}${CS[color,White]}-> `date -d"${tdt}" +"%a, %b, %d %Y"` ${CS[color,Default]}${CS[bg,Default]}" for hour in $day/* ; do - echo $hour thr=`sed 's/.*\///' <<< ${hour//_BASE/}` - echo -e "${CS[color,Green]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"`${CS[color,Default]}" + if [ "`${hour: -5}`" = "_BASE" ]; then + echo -e "${CS[color,LightGreen]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - BASE${CS[color,Default]}" + else + echo -e "${CS[color,Green]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"`${CS[color,Default]}" + fi done done echo -e "${CS[color,Yellow]}===========================================${CS[color,Default]}"