嵌入式 shell变量赋值问题

  1 #!/usr/bin/env bash
  2 # encoding: utf-8
  3 # author: kj
  4
  5 cat scan.log | grep -E 'HBA=LPe1250'
  6
  7 echo /usr/sbin/linlpcfg/linlpcfg download n=1i=./of201a10.all
  8
  9 /usr/sbin/linlpcfg/linlpcfg download n=1i=./of201a10.all
 10
 11IRecode=$?                                                                                        谨记在shell中对变量进行复赋值的时候不能有空格                                                                                              
 12
 13 echo /usr/sbin/linlpcfg/linlpcfg download n=1i=./OP512a9.prg
 14
 15 /usr/sbin/linlpcfg/linlpcfg download n=1i=./OP512a9.prg
 16
 17 rm -f scan.log
 18
 19 exit ${IRecode}
 20
~                

你可能感兴趣的:(嵌入式)