```bash
BOARD_ID=3
BOARD_STR="ID${BOARD_ID}"
CONFIGURE_DIR_CUSTOMER="/root/scscf/docker/docker_iscscf/build_is_image/iscscf/configure"
mesg=`grep -n "${BOARD_STR}" ${CONFIGURE_DIR_CUSTOMER}/customer.xml | cut -d ":" -f 1`
line1=`echo $mesg | cut -d " " -f 1`
line2=`echo $mesg | cut -d " " -f 2`
echo "first line: $line1"
echo "second line: $line2"
identity=`sed -n "${line1},${line2}p" customer.xml | grep "local_identity" | cut -d'"' -f 2`
echo $identity
1,变量赋值不要有空格
2,grep -n 可以显示行号
3,通过空格或者分号来分割字符串,cut是真好用,f可以指定分割后的第几块
4,sed -n 是输出第几行到第几行的内容