Удалить дубликаты, но оставить первый экземпляр

Я столкнулся с той же проблемой, пытаясь настроить Alpine на Hyper V. Во время установки я решил выбрать режим sys -.

sys mode

This is a traditional hard-disk install (see link for details). Both the boot system and your modifications are written to the hard disk, in a standard Linux hierarchy.

Note: The setup-alpine script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "sys". By default, it will create three partions on your disk, for /boot, /, and swap; however you can also partition your disk manually.

This mode may be used for desktops, development boxes, and virtual servers.

-3
11.01.2021, 04:37
1 ответ
$ awk 'BEGIN{FS=OFS=","} seen[$1]++{$1=""} 1' file
id1,ipadd1,number1
,ipadd2,number2
,ipadd3,number3
id2,ipadd1,number1
,ipadd2,number2
,ipadd2,number3
id3,ipadd2,number2
,ipadd2,number2
1
18.03.2021, 22:37

Теги

Похожие вопросы