#!/bin/sh if ! which gnuplot > /dev/null 2>&1 then echo "gnuplot not found - skipping graph creation" >&2 exit 1 fi file=postProcessing/outflow/0/surfaceFieldValue.dat V15=$(grep '^2 ' "$file" | cut -f3) V20=$(grep '^3 ' "$file" | cut -f3) V25=$(grep '^4 ' "$file" | cut -f3) V30=$(grep '^5 ' "$file" | cut -f3) V35=$(grep '^6 ' "$file" | cut -f3) gnuplot<