#! /bin/bash RangesFile=$1 ConstraintsFile=$2 gawk -f apply_constraints.awk Pass=1 $RangesFile Pass=2 $ConstraintsFile