Subscribed unsubscribe Subscribe Subscribe

シェルのシンタックス・ハイライトテスト

雑記
#!/bin/sh
echo 'This is a test message'
for i in $(cat list.txt|sed -e 's/[0-9]*$//g' -e 's/MSG/msg/')
do
  RESULT=$(testcmd -i ${i} --comment "syntax highlight test")
  if [ -z ${RESULT} ]
  then
    exit
  fi
done
exit
[root@myserver ~]# pwd
/root/workshop
[root@myserver ~]# echo 'This is a test message'
This is a test message
[root@myserver ~]#

ほほう