Bash error: Integer expression expected
问题 In the sections below, you'll see the shell script I am trying to run on a UNIX machine, along with a transcript. When I run this program, it gives the expected output but it also gives an error shown in the transcript. What could be the problem and how can I fix it? First, the script: #!/usr/bin/bash while read A B C D E F do E=`echo $E | cut -f 1 -d "%"` if test $# -eq 2 then I=`echo $2` else I=90 fi if test $E -ge $I then echo $F fi done And the transcript of running it: $ df -k | ./filter