I have an output from ssh like below. I want to parse the below output to an hashmap using java. any suggestions can be helpful...
Name : mysql Relocations: (not relocatable)
Version : 5.1.61 Vendor: CentOS
Release : 4.el6 Build Date: Fri 22 Jun 2012 05:58:59 AM PDT
Install Date: Tue 13 Nov 2012 02:23:23 AM PST Build Host: c6b10.bsys.dev.centos.org
URL : http://www.mysql.com
Summary : MySQL client programs and shared libraries
My output should be a hashmap like
Key Value
Name mysql
Relocations (not relocatable)
Version 5.1.61
Release 4.el6