sort sampleIDs.txt > sampleIDs_sorted.txt
get unique list of sorted text elements
sort -u sampleIDs.txt > sampleIDs_unique_sorted.txt
Identify duplicated ID entries. Get for each column element (word/string ID) the frequency of it's occurrence (sorted)
# Count the number of repeats for each ID (present in first or single column)
cut -f 1 sampleIDs.txt | sort | uniq -c | sort -rnk 1
Sorting list of files
ls *.txt | sort