我有一个 shell 脚本
#!/bin/bash
START=$(date +%s)
echo " Start| $START "
# do something
# start your script work here
#
# your logic ends here
END=$(date +%s)
echo " End| $END "
DIFF=$(( $END-$START ))
echo " Diff in seconds|" $DIFF
仍然收到此错误开始| 1349769151 完| 1349769151 ")49769151rror: 算术运算符无效(错误标记为 "
我知道这是基本的,所以我已经搜索和调试了两天。但仍然没有任何工作。请帮忙!