#!/bin/sh if ! which gnuplot > /dev/null 2>&1 then echo 'gnuplot not found - skipping graph creation' >&2 exit 1 fi graphFile=$(foamListTimes -latestTime)/line.xy surfaceFile=$(cd postProcessing/fluid/inflow && ls -1tr */* | tail -n 1) gnuplot<