#!/bin/bash awk -F ',' ' $1 ~ /[^\.]+\.c/ { if ($4 >= 500) print $1 "," $4; } ' < user-results.csv