获取磁盘SN、槽位相关信息

hostname -I;MegaCli -pdlist -a0|grep  `smartctl -a /dev/sdi|grep "Serial Number"|awk '{print $3}'`  -A4 -B28

hostname -I;sas3ircu 0 display |grep  `smartctl -a /dev/sdm|grep "Serial Number"|awk '{print $3}'`  -A3 -B8

目录含有特殊字符 如何删除  

/tmp 目录下,有个目录  "-e"

1,加--
  rm -rf -- '-e'
2,换LANG
  export LANG=zh_CH.UTF-8