其实调试可以
#!/bin/bash -x
运行一下看看,错误一目了然吧。
建议使用unix经典的dc计算器:
“...
MARK=$(grep "$ID" "$COURSE" |tail -1 | cut -f2 -d' ')
SUM=$(echo $SUM $MARK 2k+p|dc)
另外试试看awk, perl都是很方便的
其实调试可以
#!/bin/bash -x
运行一下看看,错误一目了然吧。
建议使用unix经典的dc计算器:
“...
MARK=$(grep "$ID" "$COURSE" |tail -1 | cut -f2 -d' ')
SUM=$(echo $SUM $MARK 2k+p|dc)
另外试试看awk, perl都是很方便的
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy