dn: uid=user,ou=exempl,dc=org,dc=local
cn:: 0JDQvdCw0YLQvtC70LjQu
sn:: 0JDQvdC
givenName:: 0JDQvdCw
description:: 0KHQuNGB0YLQtdC80Lww0YLQvtGA
uid: user
loginShell: /bin/bash
uidNumber: 43433
shadowLastChange: 14433
mail: user@mail
gosaMailDeliveryMode: []
gidNumber: 5000
homeDirectory: /home/user
userPassword:: FEegflrrhlhfdeffetbvgrt
objectClass: inetOrgPerson
objectClass: organizationalPerson
sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3F2wh9fq8SSdehtEfrtg
RAI2LqVIy4YYBQZSC5TXcyGJg8fiOWupooeJIXSFbeDilIrvEju0htfXfn2WzTn93++lnoTKOvo82
RIhADmUyrZKd1vuZhVbqRQICEID3kxuoM47igHykMlW11kZhuh07+xw1y2B5yLlMqjc6tqBqZRVB1
0iNXbIud user@host
# search result
search: 2
result: 0 Success
Как вырезать из вывода команды sshPublicKey:...? С помощью awk или sed
-
Вопрос задан
-
110 просмотров