Пример:
Код: Выделить всё
user1.txt
Код: Выделить всё
Phill
Johne
Marie
Arthuro
Код: Выделить всё
user2.txt
Код: Выделить всё
Allow from:
Phill
Johne
Я пробовал несколько решений с помощью cat , sed, grep, но я не могу:
Код: Выделить всё
cat user1.txt | uniq > user2.txt;
Подробнее здесь: https://stackoverflow.com/questions/785 ... st-2-lines