http://www.perlmonks.org?node_id=655379


in reply to (OT) Korne Shell Parameter...

Command line solution:
export uid=1000; perl -ne '$1 > $ENV{"uid"} and print if /\w+:\w+:(\d+ +)/' /etc/passwd