#!/bin/bash cat "$1" | sed 's/\(..\).*\ \(.\).*/&:\U\1\2PAAI/' >elsosok.txt cat elsosok.txt | cut -d: -f2 | uniq -d >hiba.txt