Несколько идиоматическая версия awk -, использующая «режим абзаца»:
$ awk '{$1=FILENAME OFS $1} 1' RS= FS='\n' OFS=' | ' Contacts.*
Contacts.Brazil | Name:Tom Paul | Gender:Male | Age:26 | Address: Sau Paulo
Contacts.USA | Name:John Due | Gender:Male | Age:21 | Address: Texas
Contacts.USA | Name:Ed Mundo | Gender:Male | Age:41 | Address: California
Аналогичная реализация на perl:
perl -Mfeature=say -F'\n' -00ne 'say join " | ", $ARGV, @F' Contacts.*
Чтение ArchWiki для Xorg привело меня к решению. В нем говорится
The DPI of the X server is determined in the following manner:
- The -dpi command line option has highest priority.
- If this is not used, the DisplaySize setting in the X config file is used to derive the DPI, given the screen resolution.
- If no DisplaySize is given, the monitor size values from DDC are used to derive the DPI, given the screen resolution.
- If DDC does not specify a size, 75 DPI is used by default.
Основываясь на этом, я искал "-dpi" и обнаружил проблему с этим:
grep -r '\-dpi' /etc/
/etc/sddm.conf:ServerArguments=-nolisten tcp -dpi 192
Удаление «-dpi 192» из этой строки решило проблему.