8、shell 打印实时时间日志

#!/bin/bash
test="jkkkkkk"
echo " `date "+%Y-%m-%d %H:%M:%S"` | $test"
原文地址:https://www.cnblogs.com/whxiao/p/14685645.html