In my script, Im getting data from website, like that:content=$(wget 10.0.1.5:8000/currentsong?sid=1 -q -O -);It's basicaly song information on shoutcast server. But there is the problem:I like to do: If the new value dont match the old value in the string, do something. Like that:if [ $content.new != $content.old ]; then        echo New song info there..else        echo NOTHINGfiHow can I do that?EDIT: I forgot say, the script will run in loop.
Comparing values in one same string
bash;shell script;scripting
I would do something likecontent=$(wget 10.0.1.5:8000/currentsong?sid=1 -q -O content_old=$(cat /tmp/content.old)if [ $content != $content_old ]; then        echo New song info there..else        echo NOTHINGfiecho $content > /tmp/content.old