#!/bin/bash IFS=',' while read uid school date points; do if test "$points" -ge 500; then echo "$uid" fi done < user-results.csv