"command not found" in bash script

Just upload the picture, the following picture is a part of the file "QC1.sh" (operation of reading and writing registers):

After running, an error is reported, that is, the content of line 110 circled in the above figure causes a yellow "command not found" error

Solution: In line 110 and other logical judgments such as "if [...]" , the judgment conditions such as "$variable -eq constant" or "$variable -ne constant" should be preceded and followed by spaces " " , as shown in the figure below, the problem is solved:

Guess you like

Origin blog.csdn.net/qq_23958061/article/details/113541097