Hello,
I am trying to do a simple comparison to check if a line is empty using bash:
line=$(cat test.txt | grep mum )
if [ "$line" -eq "" ]
        then
        echo "mum is not there"
    fi
But it is not working, it says: [: too many arguments
Thanks a lot for your help!