I am exporting certain parts of my registry into a .txt file. The output looks something like so:
Key Name: HKEY_CURRENT_USER\XXXXX\\Recorded
Class Name: <NO CLASS>
Last Write Time: 9/11/2005 - 6:12 PM
Value 0
Name: Something
Type: Useless information
Data: 192.168.1.1
Value 1
Name: Something else
Type: Useless information
Data: 192.000.1.2
It then continues by adding +1 to Value. So Value 0, Value 1, Value 2, Value 3, Value 4, etc. The Type always stays the same, and the Name/Data wil already change.
I want the final result to be:
Data - Name
Such as:
192.000.1.2 - Something else
192.168.1.1 - Something
First, it seems like I should deleted lines 1-3. Then replace all lines containing "Name:"
But I am not sure how I can do a reverse sort for the IP so it is in front of the name.
Is this too much to ask for, or can someone provide a fairly easy solution?
Key Name: HKEY_CURRENT_USER\XXXXX\\Recorded
Class Name: <NO CLASS>
Last Write Time: 9/11/2005 - 6:12 PM
Value 0
Name: Something
Type: Useless information
Data: 192.168.1.1
Value 1
Name: Something else
Type: Useless information
Data: 192.000.1.2
It then continues by adding +1 to Value. So Value 0, Value 1, Value 2, Value 3, Value 4, etc. The Type always stays the same, and the Name/Data wil already change.
I want the final result to be:
Data - Name
Such as:
192.000.1.2 - Something else
192.168.1.1 - Something
First, it seems like I should deleted lines 1-3. Then replace all lines containing "Name:"
But I am not sure how I can do a reverse sort for the IP so it is in front of the name.
Is this too much to ask for, or can someone provide a fairly easy solution?