21 Jul
2005
21 Jul
'05
15:25
Am Donnerstag, 21. Juli 2005 17:05 schrieb luisa merenda:
Versuch es doch mal mit:
if [ "$ISTID" < "$SOLLID" ]; then
Und Poste mal ob das funkt oder nicht.
dürfte nicht gehen, da: aus: Advanced Bash−Scripting Guide <quote> < --> is less than, in ASCII alphabetical order if [[ "$a" < "$b" ]] if [ "$a" \< "$b" ] Note that the "<" needs to be escaped within a [ ] construct. </quote> aber ich hab noch eine weitere Variante ;) $ if (( IST < SOLL )) ; then echo "IST ist kleiner" ; fi IST ist kleiner Gruß Andreas