This is just an example of the sort of thing I'm trying to do. Basically I have script that has to execute code in an if statement depending on the version of MySQL. To tes I've got this below. I know bash won't do floats so I was going to use awk. Can anyone help to make this work?
#!/bin/bash
var=5.5
mysqlV=5.6
if awk '{print $var > $mysqlV}'; then
result=1
else
result=0
echo $result
fi
Aucun commentaire:
Enregistrer un commentaire