Además de eliminar y agregar mod4 y Super _L, intercambie códigos clave.
Obtenga códigos clave con xmodmap -pke
e intercambie los valores. Para mí, keycode 37 = Control_L NoSymbol Control_L
), así lo hago:
xmodmap -e "keycode 37 = Super_L"
y los otros dos si es necesario. No puedo probar exactamente, tengo un teclado sin Super_L
.
Создайте 2 файла f1 и f2 с требуемым содержимым и запустите следующее (Будет работать, если вы хотите включить 8297
в вывод)
sort -k1 f1 > ff1
sort -k1 f2 > ff2
join ff1 ff2 | cut -d ' ' -f1 > t1.txt
join ff1 ff2 | cut -d ' ' -f2 > t2.txt
paste t1.txt t2.txt > finaloutput.out
rm f1 f2 ff1 ff2
finaloutput.out будет содержать требуемый вывод
Используйте join
для отсортированных файлов:
join -o 1.1,1.2 <(sort file1.csv) <(sort file2.csv) > file3.csv
-o 1.1,1.2
означает выход file1.field1
иfile1.field2
Выход:
1234 yxds
4352 fsfk
8297 fhjs
8765 fdgj
Использование Миллера(https://github.com/johnkerl/miller)
mlr --nidx join -j 1 --lp 2 -f input_01.csv then unsparsify then cut -f 1,22 input_02.csv
У вас будет
1234 yxds
4352 fsfk
8765 fdgj
8297 fhjs