$ perl -le 'print grep { -f } glob "foo.c"' #### $ shopt -s nullglob $ echo foo.?