linux bash/dash 问题,请大神帮忙
#!/bin/sh
totalCores=`lscpu | grep "On-line CPU(s)" | cut -c 26-28`
DCTCORES="$(seq -s ',' 0 ${(totalCores+1)/2})"
DCTCORES_SPDELIM=`echo $DCTCORES | sed "s/,/ /g"`
运行后报如下错,怎么解决。。。。
line 3: ${(totalCores+1)/2}: bad substitution