Use excel sheet or grep + uniq command in Linux code example Example: how to filter 12 character words from file bash awk 'length($1) == 12 { print $1 }' file