android terminal 에서 shell script를 쓰려는데, rooting 했고,
s.sh 파일은,
#!/bin/sh
fs_count=$(ls ./[0-9]*/ -l | grep ^-.*\.access$ | wc -l)
echo "Total node = $fs_count"
#sh s.sh
결과 : Total node = 1
----
그런데,
#!/bin/sh
MENU=1
while [ $MENU -eq 1 ]
do
echo "test\n"
sleep 5
done
를 구동시키면,
syntax error를 내면서 done을 문제를 거네. ㄱ-a
아.. 모르겠다.
syntax error : 'done' unexpected
검색은 많이 했는데... 문제가 뭘까...
써봤던 다양한 검색어들..
android terminal shell script while loop done syntax error
android shell script while loop
linux shell script while loop
shell script 좀 도와줘요...
댓글 0