After executing the query, I get a string of parameters, among which are the following:
name="Bob" job=artist age="35" date=2018.12.21 How to display the values of the parameters in this form:
Имя - Bob Работа - artist Возраст - 35 Дата - 2018.12.21 I try through re.findall with the search for the words name = job =, etc., but I do not get what I need (I can not display the value without quotes and the date is cut off after a year).
I get the string via ssh:
stdin, stdout, stderr = ssh.exec_command('grep -rw '/root/list.txt' -e 'Bob'') data = stdout.read() + stderr.read() print(data) b'name="Bob" job=artist age="35" town=Chehov date=2018.12.21 active="yes"\n'