Bash 스크립팅에 ']'누락 오류 ./test.sh : line 13 : [: missing`] 'in the file test.sh 나는 대괄호 및 -a와 같은 다른 옵션을 사용하거나 파일 p1의 크기를 확인하여 시도했지만 오류는 항상 거기에 있고 else 문은 주어진 입력에 관계없이 항상 실행됩니다. 13 행에 있지만 도움이되지 않았습니다. test.sh #!/bin/bash echo "Enter app name" read y $y & top -b -n 1 > topLog.log #-w checks for the whole word not and sub string from that word grep -w "$y" topLog.log > p1 #-s option checks if the file p..