AND && OR || e.g. margin=180 cat Eenrgy.dat | awk -v marg="$margin" '{if($1>marg || $1<60) print $0}' > youfile.dat ^assing envirimntal varible to awk