#!/usr/bin/env bash # -F sets the field separator; the pattern filters rows printf '%s\n' "alice:30" "bob:25" "carol:40" | awk -F: '$2 > 28 {print $1}'
custom separator plus a row filter