#!/bin/sh tmp=$2.tmp rm -f $tmp $2 cplex -c "read $1" "optimize" "write $tmp sol" grep '@@' > $2 touch $2 rm -f $tmp