I think I found the right command:
Code:
date +%X | sed 's@\(..\):\(..\):\(..\)@\1:\2@'
but now I have the problem to include the third part of hyphens in the big awk command. I searched the net an tried a lot of versions but where not able to solve it.
I need to replace
with
Code:
date +%X | sed 's@\(..\):\(..\):\(..\)@\1:\2@'
in this awk statment:
Code:
&> /var/log/messages && 2>/dev/null tail -f /var/log/messages | \
awk '/.*PageAction*./ || /.*acxmgrd*./ || /.*NextPage*./ || /.*Reader*./ {system("eips ${POS} ${ROW} \"`date +%H:%M` `gasgauge-info -s`\"")}'
Ideas welcome ...