B
^BLooDY^
Mitglied
Das Script gibt immer eine FM aus.
Und ich weiß nicht wieso :=(
Kann mir wer sagen wieso?
---------Ausgabe------------
web19@srv01:~/html/scripts/test$ sh test.sh
test.sh: 01-02-2005: command not found false
-----------Script----------------
#!/bin/bash
datum_akt="`(date +%d-%m-%Y)`"
datum_remove="`date --date='20 days ago' +%d-%m-%Y`"
if ("$datum_akt" == "$datum_remove") then
echo "true"
else
echo "false"
fi
Und ich weiß nicht wieso :=(
Kann mir wer sagen wieso?
---------Ausgabe------------
web19@srv01:~/html/scripts/test$ sh test.sh
test.sh: 01-02-2005: command not found false
-----------Script----------------
#!/bin/bash
datum_akt="`(date +%d-%m-%Y)`"
datum_remove="`date --date='20 days ago' +%d-%m-%Y`"
if ("$datum_akt" == "$datum_remove") then
echo "true"
else
echo "false"
fi