#! /bin/bash

ls $1 |
while read f; do
	if [[ $f =~ .+[0-9]{4}\.[0-9]{4}_([0-9]{5}) ]]; then
		echo ${BASH_REMATCH[1]}
	fi
done | sort | uniq

exit
