bash: sort filename | uniq